From 24f929c0a7ec9a80de9d839dbd5420e90a4e70e2 Mon Sep 17 00:00:00 2001 From: khushal Date: Sat, 6 Jun 2026 14:12:34 +0530 Subject: [PATCH 1/3] (fix): Update [username]/ route based UI for NavBar --- components/layout/DashboardNavBar.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/components/layout/DashboardNavBar.tsx b/components/layout/DashboardNavBar.tsx index 43ebfc0..0bb6b88 100644 --- a/components/layout/DashboardNavBar.tsx +++ b/components/layout/DashboardNavBar.tsx @@ -20,6 +20,13 @@ export function DashboardNavbar() { setIsCreateModalOpen(false); }; + const knownRoutes = ["/", "/home", "/dashboard", "/discover", "/settings"]; + const firstSegment = pathname?.split("/").filter(Boolean)[0] ?? ""; + const isUserProfile = + pathname !== "/" && + !knownRoutes.includes(pathname) && + firstSegment.length > 0; + const isDiscover = pathname === "/discover"; const getPageTitle = () => { @@ -33,9 +40,11 @@ export function DashboardNavbar() { <>