From 204eed93c353abe9be8b39f57960c116cceef531 Mon Sep 17 00:00:00 2001 From: se0jinYoon Date: Mon, 4 Nov 2024 23:45:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=84=A0=ED=9B=84=EB=B0=B0=20Nav?= =?UTF-8?q?=EB=B0=94=20=EB=8B=A4=EB=A5=B8=20=EA=B1=B0=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/commons/Nav.tsx | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/src/components/commons/Nav.tsx b/src/components/commons/Nav.tsx index 53826968..8ae17e79 100644 --- a/src/components/commons/Nav.tsx +++ b/src/components/commons/Nav.tsx @@ -40,14 +40,30 @@ const Nav = () => { return ( <> - handleOnClickNav('둘러보기')} $disabled={userRole === 'SENIOR'}> - - 둘러보기 - - handleOnClickNav('나의 약속')}> - - 나의 약속 - + {userRole === 'SENIOR' ? ( + <> + handleOnClickNav('둘러보기')} $disabled={userRole === 'SENIOR'}> + + 둘러보기 + + handleOnClickNav('나의 약속')}> + + 나의 약속 + + + ) : ( + <> + handleOnClickNav('나의 약속')}> + + 나의 약속 + + handleOnClickNav('둘러보기')}> + + 둘러보기 + + + )} + handleOnClickNav('마이페이지')} $disabled={true}> 마이페이지