style: lint
This commit is contained in:
parent
2585017905
commit
c0ca9de5a0
@ -153,7 +153,7 @@ export const DrawPDFFields = (props: Props) => {
|
|||||||
return !!pdfFiles.filter(pdfFile => !!pdfFile.expanded).length
|
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
|
pdfFile.expanded = expanded
|
||||||
|
|
||||||
setPdfFiles(pdfFiles)
|
setPdfFiles(pdfFiles)
|
||||||
@ -189,7 +189,7 @@ export const DrawPDFFields = (props: Props) => {
|
|||||||
|
|
||||||
{pdfFiles.map((pdfFile) => {
|
{pdfFiles.map((pdfFile) => {
|
||||||
return (
|
return (
|
||||||
<Accordion expanded={pdfFile.expanded} onChange={(event, expanded) => {handleAccordionExpandChange(event, expanded, pdfFile)}}>
|
<Accordion expanded={pdfFile.expanded} onChange={(_event, expanded) => {handleAccordionExpandChange(expanded, pdfFile)}}>
|
||||||
<AccordionSummary
|
<AccordionSummary
|
||||||
expandIcon={<ExpandMore />}
|
expandIcon={<ExpandMore />}
|
||||||
aria-controls="panel1-content"
|
aria-controls="panel1-content"
|
||||||
|
Loading…
Reference in New Issue
Block a user