File tree Expand file tree Collapse file tree 3 files changed +0
-97
lines changed
apps/dashboard/components/layout/navigation Expand file tree Collapse file tree 3 files changed +0
-97
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -40,16 +40,6 @@ export function NavigationItem({
4040 return href === "" ? "/sandbox" : `/sandbox${ href } ` ;
4141 }
4242
43- if (
44- pathname . startsWith ( "/observability/database/" ) &&
45- pathname !== "/observability/database" &&
46- pathname !== "/observability/database/"
47- ) {
48- return href === ""
49- ? `/observability/database/${ currentWebsiteId } `
50- : `/observability/database/${ currentWebsiteId } ${ href } ` ;
51- }
52-
5343 if ( pathname . startsWith ( "/demo/" ) ) {
5444 return href === ""
5545 ? `/demo/${ currentWebsiteId } `
Original file line number Diff line number Diff line change @@ -64,18 +64,6 @@ const checkWebsiteMatch = (
6464 return pathname === fullPath ;
6565} ;
6666
67- const checkDatabaseMatch = (
68- item : NavigationSectionType [ "items" ] [ 0 ] ,
69- pathname : string ,
70- currentDatabaseId : string | null | undefined
71- ) => {
72- const fullPath = buildFullPath (
73- `/observability/database/${ currentDatabaseId } ` ,
74- item . href
75- ) ;
76- return pathname === fullPath ;
77- } ;
78-
7967const getPathInfo = (
8068 item : NavigationSectionType [ "items" ] [ 0 ] ,
8169 pathname : string ,
@@ -94,14 +82,6 @@ const getPathInfo = (
9482 return { isActive : checkDemoMatch ( item , pathname , currentWebsiteId ) } ;
9583 }
9684
97- if (
98- pathname . startsWith ( "/observability/database/" ) &&
99- pathname !== "/observability/database" &&
100- pathname !== "/observability/database/"
101- ) {
102- return { isActive : checkDatabaseMatch ( item , pathname , currentWebsiteId ) } ;
103- }
104-
10585 return { isActive : checkWebsiteMatch ( item , pathname , currentWebsiteId ) } ;
10686} ;
10787
You can’t perform that action at this time.
0 commit comments