refactor: enhance form validation and error handling in EditField, DefaultSelect, and Form components

This commit is contained in:
hamed
2025-11-18 09:16:01 +03:30
parent ebc6c246b9
commit 3268b3c51e
6 changed files with 117 additions and 36 deletions
+6
View File
@@ -74,8 +74,14 @@ function DefaultSelect({ list, value, updateData, label, error, name }) {
),
}}
placeholder={label}
error={!!error}
helperText={error || ""}
sx={{
borderRadius: "8px",
"& .MuiFormHelperText-root": {
marginLeft: "0",
marginRight: "14px",
},
}}
/>
)}