+
+ Přílohy
+
+
{
const input = document.createElement("input");
input.type = "file";
@@ -447,41 +658,46 @@ export default function WarehouseReceiptForm() {
};
input.click();
}}
+ sx={{
+ display: "flex",
+ flexDirection: "column",
+ alignItems: "center",
+ justifyContent: "center",
+ gap: 1,
+ p: 4,
+ border: "2px dashed",
+ borderColor: "divider",
+ borderRadius: 1,
+ color: "text.secondary",
+ cursor: "pointer",
+ opacity: uploadingFiles ? 0.6 : 1,
+ transition: "border-color .2s, background-color .2s",
+ "&:hover": {
+ borderColor: "primary.main",
+ bgcolor: "action.hover",
+ },
+ }}
>
{uploadingFiles ? (
<>
-
- Nahrávání...
+
+ Nahrávání...
>
) : (
<>
-
-
+ {UploadIcon}
+
Přetáhněte soubory sem nebo klikněte pro výběr
-
-
+
+
Dodací listy, faktury a další dokumenty
-
+
>
)}
-