mirror of
https://github.com/idanoo/autobrr
synced 2025-07-26 10:19:13 +00:00
feat(web): add not found page (#845)
implement not found page when logged in
This commit is contained in:
parent
0a69250144
commit
9f86c3ab4b
2 changed files with 52 additions and 0 deletions
|
@ -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 />} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue