chore: fixed in the PR before
This commit is contained in:
@@ -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