fix: add explicit types to all event handler params in DocumentTranslator

This commit is contained in:
2026-03-10 09:45:51 +01:00
parent 7a30d14f0f
commit a435e8c749

View File

@@ -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<HTMLInputElement>) => { const f = e.target.files?.[0]; if (f) handleFile(f); }}
/>
{file ? (
<VStack spacing={1}>
@@ -177,7 +177,7 @@ const DocumentTranslator: FC = () => {
<Box flex={1}>
<Select
value={target}
onChange={e => setTarget(e.target.value)}
onChange={(e: React.ChangeEvent<HTMLSelectElement>) => setTarget(e.target.value)}
size="md"
aria-label="Target language"
>