mirror of
https://github.com/idanoo/autobrr
synced 2025-07-25 01:39:13 +00:00
fix(web): reset global state after logout (#842)
* fix: global state bug fix. * refactor: fix text being center. * adapt mobile logout button for new logout function --------- Co-authored-by: KaiserBh <kaiserbh@proton.me> Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
This commit is contained in:
parent
f3cfeed8cd
commit
fe71dfc3af
3 changed files with 21 additions and 44 deletions
|
@ -1,7 +1,6 @@
|
|||
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
||||
|
||||
import { Login } from "../screens/auth/login";
|
||||
import { Logout } from "../screens/auth/logout";
|
||||
import { Onboarding } from "../screens/auth/onboarding";
|
||||
import Base from "../screens/Base";
|
||||
import { Dashboard } from "../screens/dashboard";
|
||||
|
@ -28,7 +27,6 @@ export const LocalRouter = ({ isLoggedIn }: { isLoggedIn: boolean }) => (
|
|||
<BrowserRouter basename={baseUrl()}>
|
||||
{isLoggedIn ? (
|
||||
<Routes>
|
||||
<Route path="/logout" element={<Logout />} />
|
||||
<Route element={<Base />}>
|
||||
<Route index element={<Dashboard />} />
|
||||
<Route path="logs" element={<Logs />} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue