diff --git a/client/src/components/inputs/Checkbox.tsx b/client/src/components/inputs/Checkbox.tsx index 5cdb9dc1f..eee2ecbd9 100644 --- a/client/src/components/inputs/Checkbox.tsx +++ b/client/src/components/inputs/Checkbox.tsx @@ -8,7 +8,10 @@ type CheckboxInputProps = CheckboxProps & { label?: string; }; export const CheckboxInput = forwardRef( - function CheckboxInput({ sx, ...props }: CheckboxInputProps, ref: React.Ref) { + function CheckboxInput( + { sx, ...props }: CheckboxInputProps, + ref: React.Ref + ) { const theme = useTheme(); return ( ( stroke: "currentColor", fill: "none", }, - "&.Mui-checked svg rect": { - fill: theme.palette.accent.main, - }, + ...sx, }} /> diff --git a/client/src/components/monitors/HeaderFilter.tsx b/client/src/components/monitors/HeaderFilter.tsx index bcaab0008..8ca5c5e30 100644 --- a/client/src/components/monitors/HeaderFilter.tsx +++ b/client/src/components/monitors/HeaderFilter.tsx @@ -11,6 +11,7 @@ import { type UptimeMonitorType, type MonitorStatus, } from "@/types/monitor"; +import { ThemeContext } from "@emotion/react"; type HeaderFilterProps = { selectedTypes: UptimeMonitorType[]; @@ -53,8 +54,10 @@ export const HeaderFilter = ({ > {UptimeMonitorTypes.map((type) => ( - - {type} + + + {type} + ))} @@ -67,8 +70,10 @@ export const HeaderFilter = ({ > {MonitorStatuses.map((status) => ( - - {status} + + + {status} + ))}