mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 04:13:18 +01:00
Upgrade Prettier
This commit is contained in:
committed by
Scott Nonnenberg
parent
d14c8e2277
commit
0d3b390129
@@ -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) })}>
|
||||
|
||||
Reference in New Issue
Block a user