Skip to content

Commit

Permalink
Merge pull request #1599 from woowacourse/hotfix-guest-profile
Browse files Browse the repository at this point in the history
hotfix: 로그인 시 프로필 표시 하도록 수정
  • Loading branch information
Creative-Lee authored Oct 11, 2023
2 parents 5a1297d + a8a0098 commit 4c6a678
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions frontend/src/components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,19 @@ const NavBar = () => {
</NavLink>
))}
</Navigation>
{authorized ? (
{authorized && (
<Link to={PATH.NEW_STUDYLOG}>
<Button
size="XX_SMALL"
icon={PencilIcon}
type="button"
cssProps={pencilButtonStyle}
/>
</Link>
)}

{isLoggedIn ? (
<>
<Link to={PATH.NEW_STUDYLOG}>
<Button
size="XX_SMALL"
icon={PencilIcon}
type="button"
cssProps={pencilButtonStyle}
/>
</Link>
<Button
size="XX_SMALL"
type="button"
Expand Down

0 comments on commit 4c6a678

Please sign in to comment.