Releasing new design #161
@ -153,7 +153,7 @@ export const DrawPDFFields = (props: Props) => {
|
||||
return !!pdfFiles.filter(pdfFile => !!pdfFile.expanded).length
|
||||
}
|
||||
|
||||
const handleAccordionExpandChange = (event: React.SyntheticEvent<Element, Event>, expanded: boolean, pdfFile: PdfFile) => {
|
||||
const handleAccordionExpandChange = (expanded: boolean, pdfFile: PdfFile) => {
|
||||
pdfFile.expanded = expanded
|
||||
|
||||
setPdfFiles(pdfFiles)
|
||||
@ -189,7 +189,7 @@ export const DrawPDFFields = (props: Props) => {
|
||||
|
||||
{pdfFiles.map((pdfFile) => {
|
||||
return (
|
||||
<Accordion expanded={pdfFile.expanded} onChange={(event, expanded) => {handleAccordionExpandChange(event, expanded, pdfFile)}}>
|
||||
<Accordion expanded={pdfFile.expanded} onChange={(_event, expanded) => {handleAccordionExpandChange(expanded, pdfFile)}}>
|
||||
<AccordionSummary
|
||||
expandIcon={<ExpandMore />}
|
||||
aria-controls="panel1-content"
|
||||
|
Loading…
Reference in New Issue
Block a user