Add yet-another-react-lightbox package and update .gitignore to exclude node_modules
This commit is contained in:
14
frontend/node_modules/react-dnd/dist/hooks/useOptionalFactory.js
generated
vendored
14
frontend/node_modules/react-dnd/dist/hooks/useOptionalFactory.js
generated
vendored
@@ -1,14 +0,0 @@
|
||||
import { useMemo } from 'react';
|
||||
export function useOptionalFactory(arg, deps) {
|
||||
const memoDeps = [
|
||||
...deps || []
|
||||
];
|
||||
if (deps == null && typeof arg !== 'function') {
|
||||
memoDeps.push(arg);
|
||||
}
|
||||
return useMemo(()=>{
|
||||
return typeof arg === 'function' ? arg() : arg;
|
||||
}, memoDeps);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=useOptionalFactory.js.map
|
||||
Reference in New Issue
Block a user