From a435e8c7490de253cc3113585116de16fd66929a Mon Sep 17 00:00:00 2001 From: Malin Date: Tue, 10 Mar 2026 09:45:51 +0100 Subject: [PATCH] fix: add explicit types to all event handler params in DocumentTranslator --- components/DocumentTranslator.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = () => {