- 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:
1 parent
4452cb90e6
commit
63cb4e7f1d
5 files changed
+170
-175
No files matched your search
@@ -1,6 +1,15 @@
|
||||
.field {
|
||||
min-width: 250px;
|
||||
}
|
||||
|
||||
.field-infrastructure-alert {
|
||||
max-width: 100px;
|
||||
}
|
||||
|
||||
.field-infrastructure-alert .MuiInputBase-root:has(input) {
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
.field h3.MuiTypography-root,
|
||||
.field h5.MuiTypography-root,
|
||||
.field input,
|
||||
|
||||
@@ -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;
|
||||
Reference in new issue
Block a user