File tree Expand file tree Collapse file tree
vis/js/templates/listentry Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import React from "react" ;
1+ import React , { FC } from "react" ;
22import { connect } from "react-redux" ;
33
44import useMatomo from "../../utils/useMatomo" ;
55import { getPaperPDFClickHandler } from "../../utils/data" ;
66import { mapDispatchToListEntriesProps } from "../../utils/eventhandlers" ;
77import Highlight from "../../components/Highlight" ;
88import { isNonTextDocument } from "../Paper" ;
9+ import { Paper } from "../../@types/paper" ;
910
10- const PaperButtons : React . FC < any > = ( {
11+ // TODO: Update type for paper with new ones after merge (using union type)
12+ interface PaperButtonsProps {
13+ paper : Paper ;
14+ showCiteButton : boolean ;
15+ showExportButton : boolean ;
16+ noCitationDoctypes : string [ ] ;
17+ handlePDFClick : ( paper : Paper ) => void ;
18+ handleCiteClick : ( paper : Paper ) => void ;
19+ handleExportClick : ( paper : Paper ) => void ;
20+ }
21+
22+ const PaperButtons : FC < PaperButtonsProps > = ( {
1123 paper,
1224 showCiteButton,
1325 noCitationDoctypes,
You can’t perform that action at this time.
0 commit comments