From 9ebfa22c81f613abcbd0c97011cb6a35dcb61710 Mon Sep 17 00:00:00 2001 From: Mnigos Date: Sun, 17 Nov 2024 14:13:45 +0100 Subject: [PATCH] fix(components/navigation/bar): hide hamburger menu on homepage --- app/components/navigation/navigation-bar.tsx | 52 ++++++++++---------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/app/components/navigation/navigation-bar.tsx b/app/components/navigation/navigation-bar.tsx index 0632070c..3175dcc9 100644 --- a/app/components/navigation/navigation-bar.tsx +++ b/app/components/navigation/navigation-bar.tsx @@ -63,33 +63,35 @@ function NavigationBar({ user, userId }: NavigationBar.Props) { className="hidden rounded-lg lg:block" /> -
- { - setIsSidebarOpen(isOpen) - }} - > - { - setIsSidebarOpen(true) + {pathname.includes('profile') && ( +
+ { + setIsSidebarOpen(isOpen) }} - className="cursor-pointer" > - {isSidebarOpen ? ( - - ) : ( - - )} - - - -
- -
-
-
-
+ { + setIsSidebarOpen(true) + }} + className="cursor-pointer" + > + {isSidebarOpen ? ( + + ) : ( + + )} + + + +
+ +
+
+
+
+ )}

rigtch.fm