regression: projects breadcrumb in accordion layout (#8194)
This commit is contained in:
parent
a4de486cf7
commit
c685042a47
14 changed files with 58 additions and 20 deletions
17
apps/web/ce/components/breadcrumbs/common.tsx
Normal file
17
apps/web/ce/components/breadcrumbs/common.tsx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// local components
|
||||
import { useProjectNavigationPreferences } from "@/hooks/use-navigation-preferences";
|
||||
import { ProjectBreadcrumb } from "./project";
|
||||
|
||||
type TCommonProjectBreadcrumbProps = {
|
||||
workspaceSlug: string;
|
||||
projectId: string;
|
||||
};
|
||||
|
||||
export function CommonProjectBreadcrumbs(props: TCommonProjectBreadcrumbProps) {
|
||||
const { workspaceSlug, projectId } = props;
|
||||
// preferences
|
||||
const { preferences: projectPreferences } = useProjectNavigationPreferences();
|
||||
|
||||
if (projectPreferences.navigationMode === "horizontal") return null;
|
||||
return <ProjectBreadcrumb workspaceSlug={workspaceSlug} projectId={projectId} />;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue