@visns-studio/visns-components 3.5.5 → 3.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -363,16 +363,30 @@ function GenericDetail({ extraUrlParam, setting, urlParam, userProfile }) {
|
|
|
363
363
|
});
|
|
364
364
|
}}
|
|
365
365
|
>
|
|
366
|
-
{({
|
|
366
|
+
{({
|
|
367
|
+
getRootProps,
|
|
368
|
+
getInputProps,
|
|
369
|
+
isDragActive,
|
|
370
|
+
}) => (
|
|
367
371
|
<section className="dropzone__container">
|
|
368
372
|
<div {...getRootProps()}>
|
|
369
373
|
<input
|
|
370
374
|
{...getInputProps()}
|
|
371
375
|
/>
|
|
372
376
|
<p>
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
377
|
+
{isDragActive ? (
|
|
378
|
+
<p>
|
|
379
|
+
Drop the files
|
|
380
|
+
here ...
|
|
381
|
+
</p>
|
|
382
|
+
) : (
|
|
383
|
+
<p>
|
|
384
|
+
Drag 'n' drop
|
|
385
|
+
some files here,
|
|
386
|
+
or click to
|
|
387
|
+
select files
|
|
388
|
+
</p>
|
|
389
|
+
)}
|
|
376
390
|
</p>
|
|
377
391
|
</div>
|
|
378
392
|
<ul className="dropzone__files">
|
package/package.json
CHANGED