Skip to content

Commit

Permalink
๐Ÿ”ง Fix : ๋น„๋กœ๊ทธ์ธ์ผ ๋•Œ ๋ฒ„ํŠผ ์˜ค๋ฅ˜ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
๐Ÿ”ง Fix : ๋น„๋กœ๊ทธ์ธ์ผ ๋•Œ ๋ฒ„ํŠผ ์˜ค๋ฅ˜ ์ˆ˜์ •
  • Loading branch information
eunjju2 authored Dec 10, 2024
2 parents 38dd972 + cbdfea2 commit 7922f72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 7 additions & 3 deletions src/pages/DetailPage/components/DetailNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ const DetailNavigation = ({
return (
<div className='fixed bottom-0 z-10 flex h-[94px] w-[375px] items-center justify-center border-t border-subfont bg-white pb-[16px]'>
<div className='flex items-center gap-2'>
{isUser && (
{isLogin && !isUser ? (
<div />
) : (
<button
type='button'
className='flex h-[48px] w-[100px] items-center justify-center rounded-[8px] border border-primary'
Expand All @@ -61,11 +63,13 @@ const DetailNavigation = ({
)}
<button
type='button'
className={`h-[48px] rounded-[8px] text-white ${isBtnDisabled ? 'bg-subfont' : 'bg-primary'} ${isUser ? 'w-[222px]' : 'pointer-events-none w-custom bg-subfont'}`}
className={`h-[48px] rounded-[8px] text-white ${isBtnDisabled ? 'bg-subfont' : 'bg-primary'} ${isLogin && !isUser ? 'pointer-events-none w-custom bg-subfont' : 'w-[222px]'}`}
disabled={isBtnDisabled}
onClick={handleSelectRoom}
>
{isUser ? '๋ฃธ ์„ ํƒํ•˜๊ธฐ' : '์‚ฌ์—…์ž๋Š” ๋ฃธ์„ ์„ ํƒํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.'}
{isLogin && !isUser
? '์‚ฌ์—…์ž๋Š” ๋ฃธ์„ ์„ ํƒํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.'
: '๋ฃธ ์„ ํƒํ•˜๊ธฐ'}
</button>
</div>
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/pages/ReservationPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ const ReservationPage = () => {
<div className='flex items-center gap-2'>
<button
type='button'
className={`btn-primary w-custom px-1 ${isLogin ? '' : 'pointer-events-none bg-subfont'} ${isUser ? '' : 'pointer-events-none w-custom bg-subfont font-normal'}`}
className={`btn-primary w-custom px-1 ${isLogin && !isUser ? 'pointer-events-none w-custom bg-subfont font-normal' : ''}`}
onClick={handleClickReservation}
>
{isUser ? '๋ฃธ ์„ ํƒํ•˜๊ธฐ' : '์‚ฌ์—…์ž๋Š” ์˜ˆ์•ฝํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.'}
{isLogin && !isUser
? '์‚ฌ์—…์ž๋Š” ์˜ˆ์•ฝํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.'
: '๋ฃธ ์„ ํƒํ•˜๊ธฐ'}
</button>
</div>
</div>
Expand Down

0 comments on commit 7922f72

Please sign in to comment.