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 11import { last } from "lodash-es" ;
2- import { ArchiveIcon , Globe2Icon , HomeIcon } from "lucide-react" ;
2+ import { Globe2Icon , HomeIcon } from "lucide-react" ;
33import { observer } from "mobx-react-lite" ;
44import { matchPath , NavLink , useLocation } from "react-router-dom" ;
55import useDebounce from "react-use/lib/useDebounce" ;
@@ -44,14 +44,8 @@ const HomeSidebar = observer((props: Props) => {
4444 title : t ( "common.explore" ) ,
4545 icon : < Globe2Icon className = "w-4 h-auto opacity-70 shrink-0" /> ,
4646 } ;
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- } ;
5347
54- const navLinks : NavLinkItem [ ] = currentUser ? [ homeNavLink , exploreNavLink , archivedNavLink ] : [ exploreNavLink ] ;
48+ const navLinks : NavLinkItem [ ] = currentUser ? [ homeNavLink , exploreNavLink ] : [ exploreNavLink ] ;
5549
5650 useDebounce (
5751 async ( ) => {
Original file line number Diff line number Diff line change 11import { Dropdown , Menu , MenuButton , MenuItem } from "@mui/joy" ;
2- import { LogOutIcon , User2Icon , SmileIcon } from "lucide-react" ;
2+ import { ArchiveIcon , LogOutIcon , User2Icon , SquareUserIcon } from "lucide-react" ;
33import { authServiceClient } from "@/grpcweb" ;
44import useCurrentUser from "@/hooks/useCurrentUser" ;
55import useNavigateTo from "@/hooks/useNavigateTo" ;
@@ -47,9 +47,13 @@ const UserBanner = (props: Props) => {
4747 </ MenuButton >
4848 < Menu placement = "bottom-start" style = { { zIndex : "9999" } } >
4949 < 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" />
5151 < span className = "truncate" > { t ( "common.profile" ) } </ span >
5252 </ 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 >
5357 < MenuItem onClick = { handleSignOut } >
5458 < LogOutIcon className = "w-4 h-auto opacity-60" />
5559 < span className = "truncate" > { t ( "common.sign-out" ) } </ span >
You can’t perform that action at this time.
0 commit comments