Fixed old lingering props

This commit is contained in:
Daniel Cojocea committed 2024-08-28 18:15:48 -04:00
1 parent e39e1bce12
commit 9a62a42a09
8 files changed
+27 -20

No files matched your search

+8 -8
View File
@@ -56,7 +56,7 @@ const Field = forwardRef(
return ( return (
<Stack <Stack
gap={theme.gap.xs} gap={theme.spacing(2)}
className={`field field-${type}`} className={`field field-${type}`}
sx={{ sx={{
"& fieldset": { "& fieldset": {
@@ -127,8 +127,8 @@ const Field = forwardRef(
? { ? {
"& .MuiInputBase-root": { padding: 0 }, "& .MuiInputBase-root": { padding: 0 },
"& .MuiStack-root": { "& .MuiStack-root": {
borderTopLeftRadius: `${theme.shape.borderRadius}px`, borderTopLeftRadius: theme.shape.borderRadius,
borderBottomLeftRadius: `${theme.shape.borderRadius}px`, borderBottomLeftRadius: theme.shape.borderRadius,
}, },
} }
: {} : {}
@@ -140,9 +140,9 @@ const Field = forwardRef(
alignItems="center" alignItems="center"
height="100%" height="100%"
sx={{ sx={{
borderRight: `solid 1px ${theme.palette.section.borderColor}`, borderRight: `solid 1px ${theme.palette.border.dark}`,
backgroundColor: "#f9f9fa", backgroundColor: "#f9f9fa",
pl: theme.gap.medium, pl: theme.spacing(6),
}} }}
> >
<Typography <Typography
@@ -161,8 +161,8 @@ const Field = forwardRef(
onClick={() => setVisible((show) => !show)} onClick={() => setVisible((show) => !show)}
tabIndex={-1} tabIndex={-1}
sx={{ sx={{
color: theme.palette.section.borderColor, color: theme.palette.border.dark,
padding: `calc(${theme.gap.xs} / 2)`, padding: theme.spacing(1),
"&:focus": { "&:focus": {
outline: "none", outline: "none",
}, },
@@ -183,7 +183,7 @@ const Field = forwardRef(
component="span" component="span"
className="input-error" className="input-error"
color={theme.palette.error.text} color={theme.palette.error.text}
mt={theme.gap.xs} mt={theme.spacing(2)}
sx={{ sx={{
opacity: 0.8, opacity: 0.8,
}} }}
@@ -92,9 +92,7 @@ const TeamPanel = () => {
id: idx, id: idx,
data: ( data: (
<Stack> <Stack>
<Typography <Typography style={{ color: theme.palette.text.secondary }}>
style={{ color: theme.palette.otherColors.blackish }}
>
{member.firstName + " " + member.lastName} {member.firstName + " " + member.lastName}
</Typography> </Typography>
<Typography> <Typography>
@@ -247,7 +245,7 @@ const TeamPanel = () => {
}, },
}} }}
inputProps={{ inputProps={{
sx: { textAlign: "end", padding: theme.gap.small }, sx: { textAlign: "end", padding: theme.spacing(4) },
}} }}
/> />
<Button <Button
@@ -257,8 +255,8 @@ const TeamPanel = () => {
onClick={() => toggleEdit()} onClick={() => toggleEdit()}
sx={{ sx={{
minWidth: 0, minWidth: 0,
paddingX: theme.gap.small, paddingX: theme.spacing(4),
ml: orgStates.isEdit ? theme.gap.small : 0, ml: orgStates.isEdit ? theme.spacing(4) : 0,
}} }}
/> />
</Stack> </Stack>
+1 -1
View File
@@ -381,7 +381,7 @@ const StepThree = ({ form, errors, onSubmit, onChange, onBack }) => {
/> />
</Box> </Box>
<Stack <Stack
gap={theme.gap.small} gap={theme.spacing(4)}
mb={{ xs: theme.spacing(6), sm: theme.spacing(8) }} mb={{ xs: theme.spacing(6), sm: theme.spacing(8) }}
> >
<Check <Check
+1 -1
View File
@@ -18,7 +18,7 @@ const SkeletonLayout = () => {
return ( return (
<> <>
<Stack direction="row" alignItems="center" gap={theme.gap.medium}> <Stack direction="row" alignItems="center" gap={theme.spacing(6)}>
<Skeleton variant="rounded" width={150} height={34} /> <Skeleton variant="rounded" width={150} height={34} />
<Skeleton variant="rounded" width="15%" height={34} /> <Skeleton variant="rounded" width="15%" height={34} />
<Skeleton <Skeleton
@@ -211,7 +211,7 @@ const CreatePageSpeed = () => {
label="Notify via email to following emails" label="Notify via email to following emails"
isChecked={false} isChecked={false}
/> />
<Box mx={`calc(${theme.gap.ml} * 2)`}> <Box mx={theme.spacing(16)}>
<Field <Field
id="notify-emails-list" id="notify-emails-list"
placeholder="notifications@gmail.com" placeholder="notifications@gmail.com"
+1 -1
View File
@@ -157,7 +157,7 @@ const PageSpeed = ({ isAdmin }) => {
return ( return (
<Box <Box
className="page-speed" className="page-speed"
pt={theme.gap.xl} pt={theme.spacing(20)}
sx={{ sx={{
':has(> [class*="fallback__"])': { ':has(> [class*="fallback__"])': {
position: "relative", position: "relative",
+2 -2
View File
@@ -62,7 +62,7 @@ const Settings = () => {
timezone of your server. timezone of your server.
</Typography> </Typography>
</Box> </Box>
<Stack gap={theme.gap.xl}> <Stack gap={theme.spacing(20)}>
<Select <Select
id="display-timezone" id="display-timezone"
label="Display timezone" label="Display timezone"
@@ -87,7 +87,7 @@ const Settings = () => {
remove all past data. remove all past data.
</Typography> </Typography>
</Box> </Box>
<Stack gap={theme.gap.xl}> <Stack gap={theme.spacing(20)}>
<Field <Field
type="text" type="text"
id="history-monitoring" id="history-monitoring"
+9
View File
@@ -54,6 +54,15 @@ const theme = createTheme({
}, },
unresolved: { main: "#4e5ba6", light: "#e2eaf7", bg: "#f2f4f7" }, unresolved: { main: "#4e5ba6", light: "#e2eaf7", bg: "#f2f4f7" },
other: {}, other: {},
primary: {
main: "#1570EF",
},
secondary: {
main: "#475467",
},
tertiary: {
main: "#475467",
},
}, },
spacing: 2, spacing: 2,
components: {}, components: {},