Add yet-another-react-lightbox package and update .gitignore to exclude node_modules
This commit is contained in:
22
frontend/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js
generated
vendored
22
frontend/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js
generated
vendored
@@ -1,22 +0,0 @@
|
||||
import { useMemo } from 'react';
|
||||
import { TargetConnector } from '../../internals/index.js';
|
||||
import { useDragDropManager } from '../useDragDropManager.js';
|
||||
import { useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect.js';
|
||||
export function useDropTargetConnector(options) {
|
||||
const manager = useDragDropManager();
|
||||
const connector = useMemo(()=>new TargetConnector(manager.getBackend())
|
||||
, [
|
||||
manager
|
||||
]);
|
||||
useIsomorphicLayoutEffect(()=>{
|
||||
connector.dropTargetOptions = options || null;
|
||||
connector.reconnect();
|
||||
return ()=>connector.disconnectDropTarget()
|
||||
;
|
||||
}, [
|
||||
options
|
||||
]);
|
||||
return connector;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=useDropTargetConnector.js.map
|
||||
Reference in New Issue
Block a user