Skip to content

Commit 31e06be

Browse files
Merge pull request #180 from CivicDataLab/178-fix-breadcrumb-in-dashboard-to-show-the-entity-menu-in-datasets-listing
add breadcrumb option to navigate to entity page
2 parents 525632a + 2464bc5 commit 31e06be

File tree

1 file changed

+7
-0
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]

1 file changed

+7
-0
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/layout.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ export default function OrgDashboardLayout({ children }: DashboardLayoutProps) {
4343
href: '/dashboard/user/datasets',
4444
label: 'User Dashboard',
4545
},
46+
{
47+
href: `/dashboard/${params.entityType}`,
48+
label:
49+
params.entityType === 'organization'
50+
? 'My Organizations'
51+
: 'My DataSpaces',
52+
},
4653
{
4754
href: '',
4855
label: `${params.entitySlug}`,

0 commit comments

Comments
 (0)