Skip to content

Commit 4ebef37

Browse files
committed
cleanup
1 parent 1cbc328 commit 4ebef37

File tree

3 files changed

+0
-97
lines changed

3 files changed

+0
-97
lines changed

apps/dashboard/components/layout/navigation/database-header.tsx

Lines changed: 0 additions & 67 deletions
This file was deleted.

apps/dashboard/components/layout/navigation/navigation-item.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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}`

apps/dashboard/components/layout/navigation/navigation-section.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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-
7967
const 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

0 commit comments

Comments
 (0)