- Remove Color picker OOTB label, add custom label

- Add label for logo
- Replace react beautiful dnd with hello-pangea to fix the  "defaultProps will not be supported " console warning due to react beatuful dnd deprecation
- Add all the checkboxes and respective validation
- Remove subdomain from UI display
- Pass Handlers as context for both tabs to ease code scalability
- All Status page fields are now ready for submission
This commit is contained in:
Shemy Gan committed 2025-01-17 14:34:29 -05:00
1 parent 642c5f0479
commit 045a9cff3a
11 files changed
+243 -257

No files matched your search

@@ -115,7 +115,7 @@ Checkbox.propTypes = {
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired,
size: PropTypes.oneOf(["small", "medium", "large"]),
isChecked: PropTypes.bool.isRequired,
value: PropTypes.string,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
onChange: PropTypes.func,
isDisabled: PropTypes.bool,
alignSelf: PropTypes.bool,
@@ -6,7 +6,6 @@ import { MuiColorInput } from "mui-color-input";
/**
*
* @param {*} id The ID of the component
* @param {*} label The Label of the component
* @param {*} value The color value of the component
* @param {*} error The error of the component
* @param {*} onChange The Change handler function
@@ -15,7 +14,6 @@ import { MuiColorInput } from "mui-color-input";
* Example usage:
* <ColorPicker
* id="color"
* label="Color"
* value={form.color}
* error={errors["color"]}
* onChange={handleColorChange}
@@ -23,7 +21,7 @@ import { MuiColorInput } from "mui-color-input";
* >
* </ColorPicker>
*/
const ColorPicker = ({ id, label, value, error, onChange, onBlur }) => {
const ColorPicker = ({ id, value, error, onChange, onBlur }) => {
const theme = useTheme();
return (
<Stack gap={theme.spacing(4)}>
@@ -31,7 +29,6 @@ const ColorPicker = ({ id, label, value, error, onChange, onBlur }) => {
format="hex"
value={value}
id={id}
label={label}
onChange={onChange}
onBlur={onBlur}
/>
@@ -54,7 +51,6 @@ const ColorPicker = ({ id, label, value, error, onChange, onBlur }) => {
ColorPicker.propTypes = {
id: PropTypes.string.isRequired,
label: PropTypes.string.isRequired,
value: PropTypes.string,
error: PropTypes.string,
onChange: PropTypes.func.isRequired,