Skip to content

Commit

Permalink
Add navigation item for Roles route, remove <Roles /> rendering from …
Browse files Browse the repository at this point in the history
…the layout
  • Loading branch information
mudrila committed Jun 21, 2024
1 parent a9f876c commit 9957cd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/ui/page/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
useFooterHeight,
} from '../../../../constants/common';
import useNavigationScrollReset from '../../../../hooks/utils/useNavigationScrollReset';
import Roles from '../../../../pages/daos/[daoAddress]/roles';
import { ErrorBoundary } from '../../utils/ErrorBoundary';
import { TopErrorFallback } from '../../utils/TopErrorFallback';
import { Footer } from '../Footer';
Expand Down Expand Up @@ -82,7 +81,6 @@ export default function Layout() {
fallback={<TopErrorFallback />}
showDialog
>
<Roles />
<Outlet />
</ErrorBoundary>
</Container>
Expand Down
9 changes: 9 additions & 0 deletions src/components/ui/page/Navigation/NavigationLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Question,
DiscordLogo,
BookOpen,
UsersThree,
} from '@phosphor-icons/react';
import { DAO_ROUTES } from '../../../../constants/routes';
import { URL_FAQ, URL_DISCORD, URL_DOCS } from '../../../../constants/url';
Expand Down Expand Up @@ -96,6 +97,14 @@ function InternalLinks({ closeDrawer }: { closeDrawer?: () => void }) {
scope="internal"
closeDrawer={closeDrawer}
/>
<NavigationLink
href={DAO_ROUTES.roles.relative(addressPrefix, daoAddress)}
labelKey="roles"
testId="navigation-rolesLink"
NavigationIcon={UsersThree}
scope="internal"
closeDrawer={closeDrawer}
/>
<NavigationLink
href={DAO_ROUTES.hierarchy.relative(addressPrefix, daoAddress)}
labelKey="nodes"
Expand Down

0 comments on commit 9957cd6

Please sign in to comment.