diff --git a/src/features/dashboard/components/DashboardGrid.tsx b/src/features/dashboard/components/DashboardGrid.tsx index 1d75e5b..1ac2c99 100644 --- a/src/features/dashboard/components/DashboardGrid.tsx +++ b/src/features/dashboard/components/DashboardGrid.tsx @@ -1,8 +1,8 @@ import type { SystemHealthStatus } from "../../../types/types"; import { useGetSystemHealth } from "../hooks/useGetSystemHealth"; -import CameraStatus from "./CameraStatus"; -import SystemOverview from "./SystemOverview"; -import SystemStatusCard from "./SystemStatusCard"; +import CameraStatus from "./cameraStatus/CameraStatus"; +import SystemHealthCard from "./systemHealth/SystemHealthCard"; +import SystemStatusCard from "./systemStatus/SystemStatusCard"; const DashboardGrid = () => { const { query } = useGetSystemHealth(); @@ -37,7 +37,7 @@ const DashboardGrid = () => { return (
- void; }; -const SystemOverview = ({ +const SystemHealthCard = ({ startTime, uptime, statuses, @@ -39,4 +39,4 @@ const SystemOverview = ({ ); }; -export default SystemOverview; +export default SystemHealthCard; diff --git a/src/features/dashboard/components/systemHealthModal/SystemHealthModal.tsx b/src/features/dashboard/components/systemHealth/systemHealthModal/SystemHealthModal.tsx similarity index 81% rename from src/features/dashboard/components/systemHealthModal/SystemHealthModal.tsx rename to src/features/dashboard/components/systemHealth/systemHealthModal/SystemHealthModal.tsx index fb43cb2..eeebe0d 100644 --- a/src/features/dashboard/components/systemHealthModal/SystemHealthModal.tsx +++ b/src/features/dashboard/components/systemHealth/systemHealthModal/SystemHealthModal.tsx @@ -1,8 +1,8 @@ -import type { SystemHealthStatus } from "../../../../types/types"; -import Badge from "../../../../ui/Badge"; -import ModalComponent from "../../../../ui/ModalComponent"; -import StatusIndicators from "../../../../ui/StatusIndicators"; -import { capitalize } from "../../../../utils/utils"; +import type { SystemHealthStatus } from "../../../../../types/types"; +import Badge from "../../../../../ui/Badge"; +import ModalComponent from "../../../../../ui/ModalComponent"; +import StatusIndicators from "../../../../../ui/StatusIndicators"; +import { capitalize } from "../../../../../utils/utils"; type SystemHealthModalProps = { isSystemHealthModalOpen: boolean; diff --git a/src/features/dashboard/components/StatusItems/StatusItemCPU.tsx b/src/features/dashboard/components/systemStatus/StatusItems/StatusItemCPU.tsx similarity index 100% rename from src/features/dashboard/components/StatusItems/StatusItemCPU.tsx rename to src/features/dashboard/components/systemStatus/StatusItems/StatusItemCPU.tsx diff --git a/src/features/dashboard/components/StatusItems/StatusItemLocal.tsx b/src/features/dashboard/components/systemStatus/StatusItems/StatusItemLocal.tsx similarity index 100% rename from src/features/dashboard/components/StatusItems/StatusItemLocal.tsx rename to src/features/dashboard/components/systemStatus/StatusItems/StatusItemLocal.tsx diff --git a/src/features/dashboard/components/StatusItems/StatusItemThreads.tsx b/src/features/dashboard/components/systemStatus/StatusItems/StatusItemThreads.tsx similarity index 100% rename from src/features/dashboard/components/StatusItems/StatusItemThreads.tsx rename to src/features/dashboard/components/systemStatus/StatusItems/StatusItemThreads.tsx diff --git a/src/features/dashboard/components/StatusItems/StatusItemUTC.tsx b/src/features/dashboard/components/systemStatus/StatusItems/StatusItemUTC.tsx similarity index 100% rename from src/features/dashboard/components/StatusItems/StatusItemUTC.tsx rename to src/features/dashboard/components/systemStatus/StatusItems/StatusItemUTC.tsx diff --git a/src/features/dashboard/components/SystemStatusCard.tsx b/src/features/dashboard/components/systemStatus/SystemStatusCard.tsx similarity index 86% rename from src/features/dashboard/components/SystemStatusCard.tsx rename to src/features/dashboard/components/systemStatus/SystemStatusCard.tsx index e3307b4..db9322d 100644 --- a/src/features/dashboard/components/SystemStatusCard.tsx +++ b/src/features/dashboard/components/systemStatus/SystemStatusCard.tsx @@ -1,6 +1,6 @@ -import { useInfoSocket } from "../../../app/context/WebSocketContext"; -import Card from "../../../ui/Card"; -import CardHeader from "../../../ui/CardHeader"; +import { useInfoSocket } from "../../../../app/context/WebSocketContext"; +import Card from "../../../../ui/Card"; +import CardHeader from "../../../../ui/CardHeader"; import StatusItemCPU from "./StatusItems/StatusItemCPU"; import StatusItemLocal from "./StatusItems/StatusItemLocal"; import StatusItemThreads from "./StatusItems/StatusItemThreads"; diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 301f601..3f2d9cb 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -6,9 +6,5 @@ export const Route = createFileRoute("/")({ }); function HomePage() { - return ( -
- -
- ); + return ; }