Skip to content

Commit

Permalink
Fix: 로그인 버튼 props 전달 수정 #1
Browse files Browse the repository at this point in the history
로그인 버튼에 전달하는 props에 string 타입으로 값을 전달하도록 수정함
  • Loading branch information
devhaeun committed Jan 22, 2025
1 parent dc4e8dd commit f084519
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Header = () => {
<Wrapper>
<Container>
<TopContainer>
<LoginBtn state={isLoggedIn}>
<LoginBtn state={String(isLoggedIn)}>
{isLoggedIn ? '로그아웃' : '로그인'}
</LoginBtn>
<LineDiv height={'27px'} margin={'0 32px'} />
Expand Down Expand Up @@ -83,11 +83,11 @@ const TopContainer = styled.div`
margin: 0 34px 26px 0;
`

const LoginBtn = styled.button<{state:boolean}>`
const LoginBtn = styled.button<{state:string}>`
width: 99.355px;
height: 26.644px;
border-radius: 40px;
${props => props.state ?
${props => props.state==='true' ?
`border: 1px solid #8F8E94;
background-color: transparent;
color: #8F8E94;`
Expand Down

0 comments on commit f084519

Please sign in to comment.