mirror of
https://github.com/suitenumerique/docs.git
synced 2026-05-08 16:12:26 +02:00
⚡️(frontend) remove listener on hover with react-dropzone
React-dropzone was rerendering components on hover, which was unnecessary. This commit removes the rerendering by adapting its settings.
This commit is contained in:
@@ -109,6 +109,7 @@ export const useImport = ({ onDragOver }: UseImportProps) => {
|
||||
});
|
||||
},
|
||||
noClick: true,
|
||||
noKeyboard: true,
|
||||
});
|
||||
const { mutate: importDoc, isPending } = useImportDoc();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user