Revert "Add yet-another-react-lightbox package and update .gitignore to exclude node_modules"
This reverts commit c92f4a5edd.
This commit is contained in:
12
frontend/node_modules/react-dnd/dist/hooks/useDragDropManager.js
generated
vendored
Normal file
12
frontend/node_modules/react-dnd/dist/hooks/useDragDropManager.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { invariant } from '@react-dnd/invariant';
|
||||
import { useContext } from 'react';
|
||||
import { DndContext } from '../core/index.js';
|
||||
/**
|
||||
* A hook to retrieve the DragDropManager from Context
|
||||
*/ export function useDragDropManager() {
|
||||
const { dragDropManager } = useContext(DndContext);
|
||||
invariant(dragDropManager != null, 'Expected drag drop context');
|
||||
return dragDropManager;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=useDragDropManager.js.map
|
||||
Reference in New Issue
Block a user