Skip to content

Commit

Permalink
hide asset hub more menu, #4757 (#4780)
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony authored Sep 26, 2024
1 parent 62d75dd commit 893a81b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/next-common/components/nav/menu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
setMenuShowMainMenu,
} from "next-common/store/reducers/navSlice";
import { usePageProps } from "next-common/context/page";
import isAssetHub from "next-common/utils/isAssetHub";

export default function NavMenu({ collapsed }) {
const { tracks, fellowshipTracks, summary, detail, ambassadorTracks } =
Expand Down Expand Up @@ -56,10 +57,12 @@ function MainMenu({ collapsed, featuredMenu = [], moreMenu = [] }) {
</>
)}

<>
<NavMenuDivider />
<NavFeaturedMenu collapsed={collapsed} menu={[moreMenu]} />
</>
{!isAssetHub() && (
<>
<NavMenuDivider />
<NavFeaturedMenu collapsed={collapsed} menu={[moreMenu]} />
</>
)}
</>
);
}
Expand Down

0 comments on commit 893a81b

Please sign in to comment.