- Add basic joi validation to match what's available in BE

- Extract/ refactor the custom alert section to its own function
- WIP UI added custom alert section, retain log section and maxreties in advaced setting section
- Extend Field component to accomodate for custom alert narrower text field
This commit is contained in:
Shemy Gan committed 2024-11-06 11:13:02 -05:00
1 parent 4452cb90e6
commit 63cb4e7f1d
5 files changed
+170 -175

No files matched your search

+3 -1
View File
@@ -46,6 +46,7 @@ const Field = forwardRef(
error,
disabled,
hidden,
className
},
ref
) => {
@@ -56,7 +57,7 @@ const Field = forwardRef(
return (
<Stack
gap={theme.spacing(2)}
className={`field field-${type}`}
className={`${className ?? `field field-${type}`}`}
sx={{
"& fieldset": {
borderColor: theme.palette.border.dark,
@@ -223,6 +224,7 @@ Field.propTypes = {
error: PropTypes.string,
disabled: PropTypes.bool,
hidden: PropTypes.bool,
className: PropTypes.string
};
export default Field;