[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:
parent
a85e592ada
commit
5c907db0e2
6 changed files with 190 additions and 122 deletions
|
|
@ -1 +1,2 @@
|
|||
export * from "./app-switcher";
|
||||
export * from "./project-navigation-root";
|
||||
|
|
|
|||
15
web/ce/components/sidebar/project-navigation-root.tsx
Normal file
15
web/ce/components/sidebar/project-navigation-root.tsx
Normal 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} />;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue