feat(ui): do not change images if the dropped image is the same image

This commit is contained in:
psychedelicious
2023-06-04 17:16:50 +10:00
parent 03f3ad435a
commit a664ee30a2
5 changed files with 33 additions and 18 deletions

View File

@@ -21,7 +21,7 @@ import { v4 as uuidv4 } from 'uuid';
type IAIDndImageProps = {
image: ImageDTO | null | undefined;
onDrop: (image: ImageDTO) => void;
onDrop: (droppedImage: ImageDTO) => void;
onReset?: () => void;
onError?: (event: SyntheticEvent<HTMLImageElement>) => void;
onLoad?: (event: SyntheticEvent<HTMLImageElement>) => void;