feat: frontend logout menu

This commit is contained in:
nihonium 2025-12-06 07:19:27 +03:00
parent 69eacd7240
commit da9d0f8dda
Signed by untrusted user: nihonium
GPG key ID: 0251623741027CFC
26 changed files with 2388 additions and 712 deletions

View file

@ -11,12 +11,12 @@ import { Header } from "./components/Header/Header";
// OpenAPI.WITH_CREDENTIALS = true
const App: React.FC = () => {
const username = localStorage.getItem("username") || undefined;
const userId = localStorage.getItem("userId");
// const username = localStorage.getItem("username") || undefined;
const userId = localStorage.getItem("user_id");
return (
<Router>
<Header username={username} />
<Header />
<Routes>
{/* auth */}
<Route path="/login" element={<LoginPage />} />