From c01c000c164a6480e54a7aa8ead3642f72facfe8 Mon Sep 17 00:00:00 2001 From: Dan Reeves Date: Mon, 9 Oct 2023 03:24:06 +0100 Subject: [PATCH] only show user links if logged in on mobile --- app/layout.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 90851ad..473a691 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -137,17 +137,19 @@ export default function Layout({ user }: { user: User | null }) { {item.name} ))} -
- {userNavigation.map((item) => ( - - {item.name} - - ))} -
+ {user ? ( +
+ {userNavigation.map((item) => ( + + {item.name} + + ))} +
+ ) : null}