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 d15a8dda..4eba1221 100644 --- a/src/components/PageLayout.tsx +++ b/src/components/PageLayout.tsx @@ -1,5 +1,7 @@ import { cn } from "@app/core/utils/cn.ts"; import { AlignLeftIcon, type LucideIcon } from "lucide-react"; +import { ErrorBoundary } from "react-error-boundary"; +import { ErrorPage } from "./UI/ErrorPage"; import Footer from "./UI/Footer"; import { Spinner } from "./UI/Spinner"; @@ -23,7 +25,7 @@ export const PageLayout = ({ children, }: PageLayoutProps) => { return ( - <> +
- +
); };