remove unused

This commit is contained in:
Alex Holliday
2025-10-06 11:43:13 -07:00
parent 56e0ac9640
commit f7c094317a
4 changed files with 4 additions and 9 deletions

View File

@@ -6,7 +6,6 @@ import TableContainer from "@mui/material/TableContainer";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import { useTheme } from "@mui/material/styles";
import { typographyLevels } from "@/Utils/Theme/v2/palette";
export type Header<T> = {
id: number | string;
content: React.ReactNode;

View File

@@ -1,8 +1,6 @@
import Button from "@mui/material/Button";
import type { ButtonProps } from "@mui/material/Button";
import { useTheme } from "@mui/material/styles";
export const ButtonInput: React.FC<ButtonProps> = ({ ...props }) => {
const theme = useTheme();
return (
<Button
{...props}

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)} />;
},
},
];

View File

@@ -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) {