[WEB-2818] chore: project navigation items code refactor (#6170)

* chore: project navigation items code refactor

* fix: build error

* chore: code refactor

* chore: code refactor
This commit is contained in:
Anmol Singh Bhatia 2024-12-09 14:37:04 +05:30 committed by GitHub
parent a85e592ada
commit 5c907db0e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 190 additions and 122 deletions

View file

@ -1 +1,2 @@
export * from "./app-switcher";
export * from "./project-navigation-root";

View file

@ -0,0 +1,15 @@
"use client";
import { FC } from "react";
// components
import { ProjectNavigation } from "@/components/workspace";
type TProjectItemsRootProps = {
workspaceSlug: string;
projectId: string;
};
export const ProjectNavigationRoot: FC<TProjectItemsRootProps> = (props) => {
const { workspaceSlug, projectId } = props;
return <ProjectNavigation workspaceSlug={workspaceSlug} projectId={projectId} />;
};