Skip to content

Commit 3a01471

Browse files
committed
remove dashboard navbar optional prop
1 parent 1650413 commit 3a01471

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/[locale]/manage/layout.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use client';
22

33
import React from 'react';
4-
import { useParams } from 'next/navigation';
54
import { SidebarNavItem } from '@/types';
65

76
import { cn } from '@/lib/utils';
@@ -18,8 +17,6 @@ interface DashboardLayoutProps {
1817
export default function OrgDashboardLayout({ children }: DashboardLayoutProps) {
1918
const [isOpened, setIsOpened] = React.useState(false);
2019

21-
const params = useParams<{ organizationId: string }>();
22-
2320
const orgSidebarNav: Array<SidebarNavItem> = [
2421
{
2522
title: 'Use Cases',
@@ -28,8 +25,6 @@ export default function OrgDashboardLayout({ children }: DashboardLayoutProps) {
2825
},
2926
];
3027

31-
const organizationId = params.organizationId;
32-
3328
return (
3429
<React.Suspense fallback={<LoadingPage />}>
3530
<BreadCrumbs
@@ -47,7 +42,7 @@ export default function OrgDashboardLayout({ children }: DashboardLayoutProps) {
4742
' bg-surfaceDefault p-4 md:flex'
4843
)}
4944
>
50-
<DashboardNav items={orgSidebarNav} entitySlug={organizationId} />
45+
<DashboardNav items={orgSidebarNav} />
5146

5247
<div className="z-1 basis-2 md:hidden">
5348
<MobileDashboardNav

0 commit comments

Comments
 (0)