refactor: enhance form validation and error handling in EditField, DefaultSelect, and Form components
This commit is contained in:
@@ -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",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user