Skip to content

Commit 07f3799

Browse files
committed
set home under flag
1 parent a375388 commit 07f3799

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export const createWebsitesNavigation = (
118118
): NavigationEntry[] => [
119119
createNavItem("Home", HouseIcon, "/home", {
120120
highlight: true,
121+
flag: "home",
121122
}),
122123
...createDynamicNavigation(
123124
websites,
@@ -441,6 +442,7 @@ const createLoadingNavigation = (
441442
export const createLoadingWebsitesNavigation = (): NavigationEntry[] => [
442443
createNavItem("Home", HouseIcon, "/home", {
443444
highlight: true,
445+
flag: "home",
444446
}),
445447
...createLoadingNavigation(
446448
"Websites",

apps/dashboard/components/layout/sidebar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ export function Sidebar({ user = null }: SidebarProps) {
168168
}
169169

170170
return {
171-
navigation: navSections.filter((section) => {
172-
if (section.flag) {
173-
const flagState = isEnabled(section.flag);
174-
return flagState.isReady && flagState.enabled;
171+
navigation: navSections.filter((entry) => {
172+
if (entry.flag) {
173+
const flagState = isEnabled(entry.flag);
174+
return flagState.status === "ready" && flagState.on;
175175
}
176176
return true;
177177
}),

0 commit comments

Comments
 (0)