-
-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure proper readonly arrays for types
- Loading branch information
Showing
4 changed files
with
19,318 additions
and
14,129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from "react"; | ||
import Dropzone from "../../"; | ||
|
||
const ACCEPT = { | ||
"image/*": [".jpeg", ".png"], | ||
} as const; | ||
|
||
export default class Basic extends React.Component { | ||
render() { | ||
return ( | ||
<section> | ||
<div className="dropzone"> | ||
<Dropzone accept={ACCEPT}> | ||
{({ getRootProps, getInputProps }) => ( | ||
<div {...getRootProps()}> | ||
<input {...getInputProps()} /> | ||
<p> | ||
Try dropping some files here, or click to select files to | ||
upload. | ||
</p> | ||
</div> | ||
)} | ||
</Dropzone> | ||
</div> | ||
</section> | ||
); | ||
} | ||
} |
Oops, something went wrong.