@uxf/ui 11.45.0 → 11.45.1
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FileRejection } from "react-dropzone";
|
|
2
|
-
export declare function handleRejectedFiles(fileRejections: FileRejection[], fileCountLimit
|
|
2
|
+
export declare function handleRejectedFiles(fileRejections: FileRejection[], fileCountLimit?: number): Promise<void>;
|
|
@@ -10,7 +10,7 @@ async function handleRejectedFiles(fileRejections, fileCountLimit) {
|
|
|
10
10
|
// eslint-disable-next-line no-alert
|
|
11
11
|
alert(`Tyto soubory jsou příliš velké a nebyly nahrány: ${bigFiles.map((file) => file.file.name).join(", ")}`);
|
|
12
12
|
}
|
|
13
|
-
if ((0, is_not_empty_1.isNotEmpty)(tooManyFiles)) {
|
|
13
|
+
if ((0, is_not_empty_1.isNotEmpty)(tooManyFiles) && fileCountLimit) {
|
|
14
14
|
// eslint-disable-next-line no-alert
|
|
15
15
|
alert(`Bylo nahráno příliš mnoho souborů. Maximální počet souborů je ${fileCountLimit}`);
|
|
16
16
|
}
|