mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-19 22:19:36 +02:00
fix: misc
This commit is contained in:
@@ -41,7 +41,7 @@ export default function BaseFileInput({
|
||||
} catch (error) {
|
||||
console.error('Error previewing file:', error);
|
||||
}
|
||||
}
|
||||
} else setPreview(null);
|
||||
}, [value]);
|
||||
|
||||
const handleFileChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
@@ -67,11 +67,6 @@ export default function BaseFileInput({
|
||||
}
|
||||
};
|
||||
|
||||
function handleClear() {
|
||||
// @ts-ignore
|
||||
onChange(null);
|
||||
}
|
||||
|
||||
const handleDrop = (event: React.DragEvent<HTMLDivElement>) => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
@@ -213,11 +208,7 @@ export default function BaseFileInput({
|
||||
</Box>
|
||||
)}
|
||||
</Box>
|
||||
<InputFooter
|
||||
handleCopy={handleCopy}
|
||||
handleImport={handleImportClick}
|
||||
handleClear={handleClear}
|
||||
/>
|
||||
<InputFooter handleCopy={handleCopy} handleImport={handleImportClick} />
|
||||
<input
|
||||
ref={fileInputRef}
|
||||
style={{ display: 'none' }}
|
||||
|
Reference in New Issue
Block a user