remove unused

This commit is contained in:
Alex Holliday committed 2025-10-06 11:43:13 -07:00
1 parent 56e0ac9640
commit f7c094317a
4 files changed
+4 -9

No files matched your search

+3 -3
View File
@@ -10,7 +10,7 @@ import { ActionsMenu } from "@/Components/v2/ActionsMenu";
import type { ActionMenuItem } from "@/Components/v2/ActionsMenu";
import Typography from "@mui/material/Typography";
const getActions = (theme: any, t: Function): ActionMenuItem[] => {
const getActions = (theme: any): ActionMenuItem[] => {
return [
{
id: 1,
@@ -104,8 +104,8 @@ const getHeaders = (theme: any, t: Function) => {
{
id: "actions",
content: t("actions"),
render: (row) => {
return <ActionsMenu items={getActions(theme, t)} />;
render: () => {
return <ActionsMenu items={getActions(theme)} />;
},
},
];
@@ -18,9 +18,7 @@ const UptimeMonitors = () => {
const theme = useTheme();
const isSmall = useMediaQuery(theme.breakpoints.down("md"));
const { response, error, loading, refetch } = useGet<ApiResponse>(
"/monitors?embedChecks=true"
);
const { response, loading } = useGet<ApiResponse>("/monitors?embedChecks=true");
const monitors = response?.data ?? ([] as IMonitor[]);
if (monitors.length === 0 && !loading) {