mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-30 11:26:24 +02:00
Added breadcrumbs
This commit is contained in:
parent
49a5d048bf
commit
c884502737
5 changed files with 290 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
"use client";
|
||||
|
||||
import type React from "react";
|
||||
import { DashboardBreadcrumb } from "@/components/dashboard-breadcrumb";
|
||||
import { AppSidebarProvider } from "@/components/sidebar/AppSidebarProvider";
|
||||
import { ThemeTogglerComponent } from "@/components/theme/theme-toggle";
|
||||
import { Separator } from "@/components/ui/separator";
|
||||
|
|
@ -28,8 +29,11 @@ export function DashboardClientLayout({
|
|||
<SidebarInset>
|
||||
<header className="sticky top-0 z-50 flex h-16 shrink-0 items-center gap-2 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 border-b">
|
||||
<div className="flex items-center justify-between w-full gap-2 px-4">
|
||||
<SidebarTrigger className="-ml-1" />
|
||||
<Separator orientation="vertical" className="h-6" />
|
||||
<div className="flex items-center gap-2">
|
||||
<SidebarTrigger className="-ml-1" />
|
||||
<Separator orientation="vertical" className="h-6" />
|
||||
<DashboardBreadcrumb />
|
||||
</div>
|
||||
<ThemeTogglerComponent />
|
||||
</div>
|
||||
</header>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ export default function DashboardLayout({
|
|||
title: "Researcher",
|
||||
url: `/dashboard/${search_space_id}/researcher`,
|
||||
icon: "SquareTerminal",
|
||||
isActive: true,
|
||||
items: [],
|
||||
},
|
||||
|
||||
|
|
|
|||
15
surfsense_web/app/dashboard/[search_space_id]/page.tsx
Normal file
15
surfsense_web/app/dashboard/[search_space_id]/page.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"use client";
|
||||
|
||||
import { useParams, useRouter } from "next/navigation";
|
||||
import { useEffect } from "react";
|
||||
|
||||
export default function SearchSpaceDashboardPage() {
|
||||
const router = useRouter();
|
||||
const { search_space_id } = useParams();
|
||||
|
||||
useEffect(() => {
|
||||
router.push(`/dashboard/${search_space_id}/chats`);
|
||||
}, []);
|
||||
|
||||
return <></>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue