diff --git a/src/PageRouter.tsx b/src/PageRouter.tsx index 33888dfe..ceff7bdb 100644 --- a/src/PageRouter.tsx +++ b/src/PageRouter.tsx @@ -17,31 +17,11 @@ export const PageRouter = () => { const { activePage } = useDevice(); return ( - {activePage === "messages" && ( - - - - )} - {activePage === "map" && ( - - - - )} - {activePage === "config" && ( - - - - )} - {activePage === "channels" && ( - - - - )} - {activePage === "nodes" && ( - - - - )} + {activePage === "messages" && } + {activePage === "map" && } + {activePage === "config" && } + {activePage === "channels" && } + {activePage === "nodes" && } ); }; diff --git a/src/components/PageLayout.tsx b/src/components/PageLayout.tsx index 63834845..f22d9c39 100644 --- a/src/components/PageLayout.tsx +++ b/src/components/PageLayout.tsx @@ -1,7 +1,9 @@ import { cn } from "@app/core/utils/cn.ts"; import { AlignLeftIcon, type LucideIcon } from "lucide-react"; -import Footer from "./UI/Footer.tsx"; -import { Spinner } from "./UI/Spinner.tsx"; +import Footer from "@components/UI/Footer.tsx"; +import { Spinner } from "@components/UI/Spinner.tsx"; +import { ErrorBoundary } from "react-error-boundary"; +import { ErrorPage } from "@components/UI/ErrorPage.tsx"; export interface PageLayoutProps { label: string; @@ -23,7 +25,7 @@ export const PageLayout = ({ children, }: PageLayoutProps) => { return ( - <> +
- +
); };