Skip to content

Commit 1dc2915

Browse files
committed
fix: ControlBar에서 isLoggedIn prop의 기본값 제거
1 parent a7cf7b4 commit 1dc2915

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/pages/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export default function Home() {
66
<>
77
<div className='flex flex-col items-center justify-center min-h-screen py-2 bg-gray-50'>
88
<main className='flex flex-col items-center justify-center w-full flex-1 px-4 sm:px-20 text-center'>
9+
<Header onClick={() => {}} className='' title={'글다'} />
10+
<ControlBar isLoggedIn={false} onLogin={() => {}} userName={''} />
11+
<ControlBar isLoggedIn={true} userName='홍길동' onLogin={() => {}} />
912
<h1 className='text-4xl sm:text-6xl font-extrabold text-gray-900 mb-4'>
1013
초기 세팅 완료
1114
<Icon name='User' color='mint-600' />

src/shared/components/header/ControlBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const rightStyle = cva('flex items-center gap-[0.6rem] transition w-[7.8rem]', {
2121

2222
const ControlBar = ({
2323
onLogin,
24-
isLoggedIn = false,
24+
isLoggedIn,
2525
userName = '글다',
2626
className,
2727
}: ControlBarProps) => {

0 commit comments

Comments
 (0)