diff --git a/client/src/Components/sidebar/Menu.tsx b/client/src/Components/sidebar/Menu.tsx
index 0e89c22a2..287b5149c 100644
--- a/client/src/Components/sidebar/Menu.tsx
+++ b/client/src/Components/sidebar/Menu.tsx
@@ -27,11 +27,11 @@ export const getMenu = (t: Function) => {
{
group: t("components.sidebar.menu.groups.monitoring"),
items: [
- {
- name: t("components.sidebar.menu.dashboard"),
- path: "dashboard",
- icon: ,
- },
+ // {
+ // name: t("components.sidebar.menu.dashboard"),
+ // path: "dashboard",
+ // icon: ,
+ // },
{
name: t("components.sidebar.menu.uptime"),
path: "uptime",
diff --git a/client/src/Pages/Dashboard/components/cards/BarRow.tsx b/client/src/Pages/Dashboard/components/cards/BarRow.tsx
index f9c7df09f..231bd6497 100644
--- a/client/src/Pages/Dashboard/components/cards/BarRow.tsx
+++ b/client/src/Pages/Dashboard/components/cards/BarRow.tsx
@@ -3,7 +3,7 @@ import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography";
import { useTheme } from "@mui/material/styles";
import { typographyLevels } from "@/Utils/Theme/Palette";
-import { SPACING } from "@/Utils/Theme/constants";
+import { LAYOUT, SPACING } from "@/Utils/Theme/constants";
interface BarRowProps {
label: string;
@@ -38,15 +38,15 @@ export const BarRow = ({ label, value, fillRatio, valueColor }: BarRowProps) =>
diff --git a/client/src/Pages/Dashboard/components/cards/MonitorsByTypeCard.tsx b/client/src/Pages/Dashboard/components/cards/MonitorsByTypeCard.tsx
index a1182579b..2922f708f 100644
--- a/client/src/Pages/Dashboard/components/cards/MonitorsByTypeCard.tsx
+++ b/client/src/Pages/Dashboard/components/cards/MonitorsByTypeCard.tsx
@@ -4,6 +4,7 @@ import { BarRow } from "@/Pages/Dashboard/components/cards/BarRow";
import { useTranslation } from "react-i18next";
import { useTheme } from "@mui/material/styles";
import type { DashboardTypeCount } from "@/Pages/Dashboard/types";
+import { getMonitorTypeLabel } from "@/Types/Monitor";
import { LAYOUT } from "@/Utils/Theme/constants";
interface MonitorsByTypeCardProps {
@@ -18,11 +19,11 @@ export const MonitorsByTypeCard = ({ monitorsByType }: MonitorsByTypeCardProps)
return (
-
+
{monitorsByType.map(({ type, count }) => (
{
const theme = useTheme();
- const isSmall = useMediaQuery(theme.breakpoints.down("md"));
return (
diff --git a/client/src/Pages/Dashboard/types.ts b/client/src/Pages/Dashboard/types.ts
index bbb5c3924..1b9b75d60 100644
--- a/client/src/Pages/Dashboard/types.ts
+++ b/client/src/Pages/Dashboard/types.ts
@@ -1,4 +1,6 @@
+import type { MonitorType } from "@/Types/Monitor";
+
export interface DashboardTypeCount {
- type: string;
+ type: MonitorType;
count: number;
}
diff --git a/client/src/Routes/index.tsx b/client/src/Routes/index.tsx
index c96ecd7d0..937fd0f93 100644
--- a/client/src/Routes/index.tsx
+++ b/client/src/Routes/index.tsx
@@ -93,7 +93,7 @@ const Routes = () => {
>
}
+ element={}
/>
&
pagespeed: "optionPagespeed",
};
+export const getMonitorTypeLabel = (
+ type: MonitorType,
+ t: (key: string) => string
+): string => {
+ const monitorLabel = monitorTypeLabelKey[type];
+ return monitorLabel ? t(`pages.common.monitors.monitorTypes.${monitorLabel}`) : type;
+};
+
export const MonitorIntervalOptions = [
{ value: 15000, labelKey: "fifteenSeconds" },
{ value: 30000, labelKey: "thirtySeconds" },