Add yet-another-react-lightbox package and update .gitignore to exclude node_modules
This commit is contained in:
15
frontend/node_modules/react-dropzone/typings/tests/hook.tsx
generated
vendored
15
frontend/node_modules/react-dropzone/typings/tests/hook.tsx
generated
vendored
@@ -1,15 +0,0 @@
|
||||
import React from "react";
|
||||
import { useDropzone, DropzoneProps } from "../../";
|
||||
|
||||
export const Dropzone = ({ children, ...opts }: DropzoneProps) => {
|
||||
const { ...state } = useDropzone(opts);
|
||||
return children(state);
|
||||
};
|
||||
|
||||
<Dropzone>
|
||||
{({ getRootProps, getInputProps }) => (
|
||||
<div {...getRootProps()}>
|
||||
<input {...getInputProps()} />
|
||||
</div>
|
||||
)}
|
||||
</Dropzone>;
|
||||
Reference in New Issue
Block a user