remove background
This commit is contained in:
@@ -17,7 +17,8 @@ type Props = {
|
||||
isReset?: boolean,
|
||||
useUploadService?: boolean,
|
||||
onUploadComplete?: (urls: string[]) => void,
|
||||
onUploadError?: (error: Error) => void
|
||||
onUploadError?: (error: Error) => void,
|
||||
onDelete?: () => void
|
||||
}
|
||||
|
||||
const UploadBoxDraggble: FC<Props> = (props: Props) => {
|
||||
@@ -100,6 +101,9 @@ const UploadBoxDraggble: FC<Props> = (props: Props) => {
|
||||
if (props.onChangePreview) {
|
||||
props.onChangePreview(array);
|
||||
}
|
||||
if (props.onDelete) {
|
||||
props.onDelete()
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user