diff --git a/src/layout/SideMenu.tsx b/src/layout/SideMenu.tsx index 05f655421..76844de71 100644 --- a/src/layout/SideMenu.tsx +++ b/src/layout/SideMenu.tsx @@ -23,8 +23,8 @@ const renderPageLink = (item: PageLink) => { } return ( - - + + {icon} {item.name} @@ -35,7 +35,7 @@ const renderPageLink = (item: PageLink) => { } function SideMenu({ noOffset }: { noOffset?: boolean }) { - const { asPath } = useRouter() + const { pathname } = useRouter() const myAddress = useMyAddress() const menuItems = buildAuthorizedMenu(myAddress) @@ -48,7 +48,7 @@ function SideMenu({ noOffset }: { noOffset?: boolean }) { )} >