diff --git a/components/DocumentTranslator.tsx b/components/DocumentTranslator.tsx index a6c6879..6ac2f34 100644 --- a/components/DocumentTranslator.tsx +++ b/components/DocumentTranslator.tsx @@ -150,7 +150,7 @@ const DocumentTranslator: FC = () => { type="file" display="none" accept=".pdf,.docx,.xlsx,.xls,.csv" - onChange={e => { const f = e.target.files?.[0]; if (f) handleFile(f); }} + onChange={(e: React.ChangeEvent) => { const f = e.target.files?.[0]; if (f) handleFile(f); }} /> {file ? ( @@ -177,7 +177,7 @@ const DocumentTranslator: FC = () => {