Upgrade Prettier

This commit is contained in:
Ken Powers
2020-01-08 12:44:54 -05:00
committed by Scott Nonnenberg
parent d14c8e2277
commit 0d3b390129
57 changed files with 1074 additions and 1574 deletions

View File

@@ -37,14 +37,11 @@ export const DropZone = (props: Props) => {
accept: ['image/png', 'image/webp'],
});
React.useEffect(
() => {
if (onDragActive) {
onDragActive(isDragActive);
}
},
[isDragActive, onDragActive]
);
React.useEffect(() => {
if (onDragActive) {
onDragActive(isDragActive);
}
}, [isDragActive, onDragActive]);
return (
<div {...getRootProps({ className: getClassName(props, isDragActive) })}>