diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-09 18:28:04 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-09 18:28:04 +0100 |
commit | 57b098efd90b72c854582de9d7dafdc40506d5a9 (patch) | |
tree | b2d6028c509ff077a5f5a58ed35b569bde19a76c /components | |
parent | 01b571735cb371942d4ee997f94c5ccb98265c39 (diff) |
user page :tada:
Diffstat (limited to 'components')
-rw-r--r-- | components/navbar.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/navbar.tsx b/components/navbar.tsx index 56d6b4b..ab348a1 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -1,5 +1,4 @@ import { CSSProperties, useEffect, useState } from "react"; -/* import axios from "axios"; */ import { LogoDark } from "../components/logo"; @@ -9,7 +8,7 @@ import ExtensionIcon from '@material-ui/icons/Extension'; import SearchIcon from '@material-ui/icons/Search'; import SettingsIcon from '@material-ui/icons/Settings'; import PersonIcon from '@material-ui/icons/Person'; -import {AccountAvatar} from "./account"; +import { AccountAvatar } from "./account"; var NavBarItemStyle: CSSProperties = { margin: 12, @@ -49,7 +48,7 @@ export function NavBar() { left: 0, backgroundColor: "var(--background)" }}> - <a href={loggedIn ? "/account" : "/login"} style={NavBarItemStyle}> + <a href={loggedIn ? "/user" : "/login"} style={NavBarItemStyle}> { loggedIn ? <AccountAvatar size={24} dummy round/> : |