checkboxes

This commit is contained in:
Alex Holliday committed 2025-11-24 18:54:52 +00:00
1 parent e4d6e0930f
commit 9be77a547d
2 files changed
+14 -8

No files matched your search

@@ -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) => (
<MenuItem key={type} value={type}>
<Checkbox checked={selectedTypes.includes(type)} />
<Typography textTransform={"capitalize"}>{type}</Typography>
<Stack direction={"row"} gap={theme.spacing(2)}>
<Checkbox checked={selectedTypes.includes(type)} />
<Typography textTransform={"capitalize"}>{type}</Typography>
</Stack>
</MenuItem>
))}
</Select>
@@ -67,8 +70,10 @@ export const HeaderFilter = ({
>
{MonitorStatuses.map((status) => (
<MenuItem key={status} value={status}>
<Checkbox checked={selectedStatuses.includes(status)} />
<Typography textTransform={"capitalize"}>{status}</Typography>
<Stack direction={"row"} gap={theme.spacing(2)}>
<Checkbox checked={selectedStatuses.includes(status)} />
<Typography textTransform={"capitalize"}>{status}</Typography>
</Stack>
</MenuItem>
))}
</Select>