File tree Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -180,11 +180,13 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
180180 </ div >
181181 </ div >
182182 </ div >
183- < div className = "w-full flex border-b border-sidebar-border/70" >
184- < div className = "flex h-12 items-center justify-start w-full px-4 md:max-w-7xl mx-auto text-neutral-500" >
185- < Breadcrumbs breadcrumbs = { breadcrumbs } />
183+ { breadcrumbs . length > 1 && (
184+ < div className = "w-full flex border-b border-sidebar-border/70" >
185+ < div className = "flex h-12 items-center justify-start w-full px-4 md:max-w-7xl mx-auto text-neutral-500" >
186+ < Breadcrumbs breadcrumbs = { breadcrumbs } />
187+ </ div >
186188 </ div >
187- </ div >
189+ ) }
188190 </ >
189191 )
190192}
Original file line number Diff line number Diff line change 1- import AppLayoutTemplate from '@/layouts/app/app-header -layout' ;
1+ import AppLayoutTemplate from '@/layouts/app/app-sidebar -layout' ;
22import { type BreadcrumbItem } from '@/types' ;
33
44interface AppLayoutProps {
Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ import AppLayout from '@/layouts/app-layout';
88import SettingsLayout from '@/layouts/settings/layout' ;
99
1010const breadcrumbs : BreadcrumbItem [ ] = [
11- {
12- title : 'Dashboard' ,
13- href : '/dashboard' ,
14- } ,
1511 {
1612 title : 'Appearance settings' ,
1713 href : '/settings/appearance' ,
Original file line number Diff line number Diff line change @@ -12,10 +12,6 @@ import { Input } from '@/components/ui/input';
1212import { Label } from '@/components/ui/label' ;
1313
1414const breadcrumbs : BreadcrumbItem [ ] = [
15- {
16- title : 'Dashboard' ,
17- href : '/dashboard' ,
18- } ,
1915 {
2016 title : 'Password Settings' ,
2117 href : '/settings/password' ,
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ import AppLayout from '@/layouts/app-layout';
1313import SettingsLayout from '@/layouts/settings/layout' ;
1414
1515const breadcrumbs : BreadcrumbItem [ ] = [
16- {
17- title : 'Dashboard' ,
18- href : '/dashboard' ,
19- } ,
2016 {
2117 title : 'Profile Settings' ,
2218 href : '/settings/profile' ,
You can’t perform that action at this time.
0 commit comments