Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Enhance Sidebar component to conditionally display "Pages" link for cloud environments

Bill Yanga63e38fa636b
diff --git a/client/src/app/[site]/components/Sidebar/Sidebar.tsx b/client/src/app/[site]/components/Sidebar/Sidebar.tsx
index 5c05590f7..3ed630c76 100644
--- a/client/src/app/[site]/components/Sidebar/Sidebar.tsx
+++ b/client/src/app/[site]/components/Sidebar/Sidebar.tsx
@@ -54,18 +54,20 @@ export function Sidebar() {
href={getTabPath("main")}
icon={<LayoutDashboard className="w-4 h-4" />}
/>
- {/* <SidebarLink
- label="Pages"
- active={isActiveTab("pages")}
- href={getTabPath("pages")}
- icon={<File className="w-4 h-4" />}
- /> */}
<SidebarLink
label="Realtime"
active={isActiveTab("realtime")}
href={getTabPath("realtime")}
icon={<Earth className="w-4 h-4" />}
/>
+ {IS_CLOUD && (
+ <SidebarLink
+ label="Pages"
+ active={isActiveTab("pages")}
+ href={getTabPath("pages")}
+ icon={<File className="w-4 h-4" />}
+ />
+ )}
{IS_CLOUD && (
<SidebarLink
label="Performance"