diff --git a/client/src/Components/monitors/MonitorListPage.tsx b/client/src/Components/monitors/MonitorListPage.tsx index 8244f3875..9ab187c2b 100644 --- a/client/src/Components/monitors/MonitorListPage.tsx +++ b/client/src/Components/monitors/MonitorListPage.tsx @@ -35,7 +35,7 @@ export const MonitorListPage = ({ headerKey, page, actionLink, - controller: c, + controller, bulkActions, showTypeFilter, summaryProps, @@ -48,14 +48,14 @@ export const MonitorListPage = ({ const theme = useTheme(); const isSmall = useMediaQuery(theme.breakpoints.down("md")); const isAdmin = useIsAdmin(); - const isLoading = c.isLoading || Boolean(extraLoading); + const isLoading = controller.isLoading || Boolean(extraLoading); return ( { - c.setSearch(event.target.value); + controller.setSearch(event.target.value); }} /> - {c.selectedTags.length > 0 && ( + {controller.selectedTags.length > 0 && ( {t("pages.uptime.filters.activeTags")} - {c.selectedTags.map((tagId) => { - const tag = c.tags?.find((t) => t.id === tagId); + {controller.selectedTags.map((tagId) => { + const tag = controller.tags?.find((t) => t.id === tagId); if (!tag) return null; return ( @@ -144,12 +144,12 @@ export const MonitorListPage = ({ )} {children} ); diff --git a/client/src/Pages/Uptime/Monitors/index.tsx b/client/src/Pages/Uptime/Monitors/index.tsx index f7664c1b7..642d871d3 100644 --- a/client/src/Pages/Uptime/Monitors/index.tsx +++ b/client/src/Pages/Uptime/Monitors/index.tsx @@ -4,7 +4,7 @@ import { MonitorTable } from "@/Pages/Uptime/Monitors/Components/UptimeMonitorsT import { useMonitorListController } from "@/Hooks/useMonitorListController"; const UptimeMonitorsPage = () => { - const c = useMonitorListController({ + const monitorListController = useMonitorListController({ types: "selectable", checksLimit: 25, refreshInterval: 5000, @@ -17,25 +17,25 @@ const UptimeMonitorsPage = () => { headerKey="uptime" page="uptime" actionLink="/uptime/create" - controller={c} + controller={monitorListController} bulkActions > );