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