fix: add explicit types to all event handler params in DocumentTranslator
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user