From 562717da946b007ab275d4716242458b24e588f8 Mon Sep 17 00:00:00 2001 From: kirito Date: Sun, 5 Jul 2026 17:02:48 +0530 Subject: [PATCH] feat: conditionally render admin link based on user role --- web/src/app/(root)/page.tsx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/web/src/app/(root)/page.tsx b/web/src/app/(root)/page.tsx index f5fb725..4dc7bce 100644 --- a/web/src/app/(root)/page.tsx +++ b/web/src/app/(root)/page.tsx @@ -207,15 +207,17 @@ export default function Home() { homePageHover === 'admin' ? 'scale-110' : 'scale-100' }`} > - - - Admin - - + {session?.user.role === 'admin' && ( + + + Admin + + + )}