Revert "Add yet-another-react-lightbox package and update .gitignore to exclude node_modules"
This reverts commit c92f4a5edd.
This commit is contained in:
18
frontend/node_modules/react-dropzone/typings/tests/refs.tsx
generated
vendored
Normal file
18
frontend/node_modules/react-dropzone/typings/tests/refs.tsx
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import React, { createRef } from "react";
|
||||
import Dropzone, { DropzoneRef } from "../../";
|
||||
|
||||
const ref = createRef<DropzoneRef>();
|
||||
|
||||
export const dropzone = (
|
||||
<Dropzone ref={ref}>
|
||||
{({ getRootProps, getInputProps }) => (
|
||||
<div {...getRootProps()}>
|
||||
<input {...getInputProps()} />
|
||||
<p>Drop some files here.</p>
|
||||
<button type="button" onClick={ref.current.open}>
|
||||
Open file dialog
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
</Dropzone>
|
||||
);
|
||||
Reference in New Issue
Block a user