feat(web): add not found page (#845)

implement not found page when logged in
This commit is contained in:
martylukyy 2023-04-16 20:25:10 +02:00 committed by GitHub
parent 0a69250144
commit 9f86c3ab4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View file

@ -20,6 +20,7 @@ import {
ReleaseSettings
} from "../screens/settings/index";
import { RegexPlayground } from "../screens/settings/RegexPlayground";
import { NotFound } from "@/components/alerts/NotFound";
import { baseUrl } from "../utils";
@ -27,6 +28,7 @@ export const LocalRouter = ({ isLoggedIn }: { isLoggedIn: boolean }) => (
<BrowserRouter basename={baseUrl()}>
{isLoggedIn ? (
<Routes>
<Route path="*" element={<NotFound />} />
<Route element={<Base />}>
<Route index element={<Dashboard />} />
<Route path="logs" element={<Logs />} />