forked from nihonium/nyanimedb
feat: frontend logout menu
This commit is contained in:
parent
69eacd7240
commit
da9d0f8dda
26 changed files with 2388 additions and 712 deletions
|
|
@ -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 />} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue