Bug fixing added moving torrents after download, getting ready for alpha release
This commit is contained in:
23
goTorrentWebUI/node_modules/react-dropzone/examples/Styling/Readme.md
generated
vendored
Normal file
23
goTorrentWebUI/node_modules/react-dropzone/examples/Styling/Readme.md
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
By default, the Dropzone component picks up some default styling to get you started. You can customize `<Dropzone>` by specifying a `style`, `activeStyle` or `rejectStyle` which is applied when a file is dragged over the zone. You can also specify `className`, `activeClassName` or `rejectClassName` if you would rather style using CSS.
|
||||
|
||||
## Updating styles and contents based on user input
|
||||
|
||||
By providing a function that returns the component's children you can not only style Dropzone appropriately but also render appropriate content.
|
||||
|
||||
```
|
||||
<Dropzone
|
||||
accept="image/png"
|
||||
>
|
||||
{({ isDragActive, isDragReject, acceptedFiles, rejectedFiles }) => {
|
||||
if (isDragActive) {
|
||||
return "This file is authorized";
|
||||
}
|
||||
if (isDragReject) {
|
||||
return "This file is not authorized";
|
||||
}
|
||||
return acceptedFiles.length || rejectedFiles.length
|
||||
? `Accepted ${acceptedFiles.length}, rejected ${rejectedFiles.length} files`
|
||||
: "Try dropping some files.";
|
||||
}}
|
||||
</Dropzone>
|
||||
```
|
Reference in New Issue
Block a user