mirror of
https://github.com/iib0011/omni-tools.git
synced 2026-12-03 18:11:22 +03:00
chore: fixed in the PR before
This commit is contained in:
1 parent
31a33178b2
commit
95a7cd37cc
2 files changed
-28
No files matched your search
@@ -1,19 +0,0 @@
|
||||
import { Button } from '@mui/material';
|
||||
|
||||
interface RemoveFileButtonProps {
|
||||
onRemove: () => void;
|
||||
}
|
||||
|
||||
export default function RemoveFileButton({ onRemove }: RemoveFileButtonProps) {
|
||||
return (
|
||||
<Button
|
||||
variant="outlined"
|
||||
color="error"
|
||||
size="small"
|
||||
onClick={onRemove}
|
||||
sx={{ mt: 1 }}
|
||||
>
|
||||
Remove File
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
export function resetFileState<T>(
|
||||
setFile: (value: T | null) => void,
|
||||
setResult?: (value: any) => void
|
||||
) {
|
||||
setFile(null);
|
||||
if (setResult) {
|
||||
setResult(null);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user