File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
import { last } from "lodash-es" ;
2
- import { ArchiveIcon , Globe2Icon , HomeIcon } from "lucide-react" ;
2
+ import { Globe2Icon , HomeIcon } from "lucide-react" ;
3
3
import { observer } from "mobx-react-lite" ;
4
4
import { matchPath , NavLink , useLocation } from "react-router-dom" ;
5
5
import useDebounce from "react-use/lib/useDebounce" ;
@@ -44,14 +44,8 @@ const HomeSidebar = observer((props: Props) => {
44
44
title : t ( "common.explore" ) ,
45
45
icon : < Globe2Icon className = "w-4 h-auto opacity-70 shrink-0" /> ,
46
46
} ;
47
- const archivedNavLink : NavLinkItem = {
48
- id : "header-archived" ,
49
- path : Routes . ARCHIVED ,
50
- title : t ( "common.archived" ) ,
51
- icon : < ArchiveIcon className = "w-4 h-auto opacity-70 shrink-0" /> ,
52
- } ;
53
47
54
- const navLinks : NavLinkItem [ ] = currentUser ? [ homeNavLink , exploreNavLink , archivedNavLink ] : [ exploreNavLink ] ;
48
+ const navLinks : NavLinkItem [ ] = currentUser ? [ homeNavLink , exploreNavLink ] : [ exploreNavLink ] ;
55
49
56
50
useDebounce (
57
51
async ( ) => {
Original file line number Diff line number Diff line change 1
1
import { Dropdown , Menu , MenuButton , MenuItem } from "@mui/joy" ;
2
- import { LogOutIcon , User2Icon , SmileIcon } from "lucide-react" ;
2
+ import { ArchiveIcon , LogOutIcon , User2Icon , SquareUserIcon } from "lucide-react" ;
3
3
import { authServiceClient } from "@/grpcweb" ;
4
4
import useCurrentUser from "@/hooks/useCurrentUser" ;
5
5
import useNavigateTo from "@/hooks/useNavigateTo" ;
@@ -47,9 +47,13 @@ const UserBanner = (props: Props) => {
47
47
</ MenuButton >
48
48
< Menu placement = "bottom-start" style = { { zIndex : "9999" } } >
49
49
< MenuItem onClick = { ( ) => navigateTo ( `/u/${ encodeURIComponent ( currentUser . username ) } ` ) } >
50
- < SmileIcon className = "w-4 h-auto opacity-60" />
50
+ < SquareUserIcon className = "w-4 h-auto opacity-60" />
51
51
< span className = "truncate" > { t ( "common.profile" ) } </ span >
52
52
</ MenuItem >
53
+ < MenuItem onClick = { ( ) => navigateTo ( Routes . ARCHIVED ) } >
54
+ < ArchiveIcon className = "w-4 h-auto opacity-60" />
55
+ < span className = "truncate" > { t ( "common.archived" ) } </ span >
56
+ </ MenuItem >
53
57
< MenuItem onClick = { handleSignOut } >
54
58
< LogOutIcon className = "w-4 h-auto opacity-60" />
55
59
< span className = "truncate" > { t ( "common.sign-out" ) } </ span >
You can’t perform that action at this time.
0 commit comments