Skip to content

Commit 18f3f8e

Browse files
Merge pull request #208 from CivicDataLab/207-add-usecases-in-organization-dashboard
Move UseCases from mange to Organization dashboard
2 parents 9f48cf4 + 71c0f46 commit 18f3f8e

File tree

7 files changed

+9
-3
lines changed

7 files changed

+9
-3
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ export default function OrgDashboardLayout({ children }: DashboardLayoutProps) {
5050
href: `/dashboard/${params.entityType}/${params.entitySlug}/consumers`,
5151
icon: 'userList',
5252
},
53+
{
54+
title: 'UseCases',
55+
href: `/dashboard/${params.entityType}/${params.entitySlug}/usecases`,
56+
icon: 'userList',
57+
}
5358
];
5459

5560
return (

app/[locale]/manage/usecases/edit/[id]/assign/page.tsx renamed to app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/assign/page.tsx

File renamed without changes.

app/[locale]/manage/usecases/edit/[id]/details/page.tsx renamed to app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/details/page.tsx

File renamed without changes.

app/[locale]/manage/usecases/edit/[id]/publish/page.tsx renamed to app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/publish/page.tsx

File renamed without changes.

app/[locale]/manage/usecases/edit/layout.tsx renamed to app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/layout.tsx

File renamed without changes.

app/[locale]/manage/usecases/page.tsx renamed to app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ import { GraphQL } from '@/lib/api';
1212
import { Icons } from '@/components/icons';
1313
import { LinkButton } from '@/components/Link';
1414
import { Loading } from '@/components/loading';
15-
import { ActionBar } from '../../dashboard/[entityType]/[entitySlug]/dataset/components/action-bar';
16-
import { Navigation } from '../../dashboard/[entityType]/[entitySlug]/dataset/components/navigate-org-datasets';
15+
import { Navigation } from '../dataset/components/navigate-org-datasets';
16+
import { ActionBar } from '../dataset/components/action-bar';
17+
1718

1819
const allUseCases: any = graphql(`
1920
query UseCasesData($filters: UseCaseFilter, $order: UseCaseOrder) {

app/[locale]/dashboard/components/dashboard-nav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function DashboardNav({
8080
<Text variant="headingMd" fontWeight="medium" className="py-2">
8181
{entityDetails?.name}
8282
</Text>
83-
<Link href={'/dashboard'}>
83+
<Link href={'/dashboard/organization'}>
8484
<Text variant="headingXs" color="interactive">
8585
{' '}
8686
Go back to Dashboard{' '}

0 commit comments

Comments
 (0)