Skip to content

Commit

Permalink
fix: 로그인 시 프로필 표시 하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Creative-Lee committed Oct 11, 2023
1 parent d982ce3 commit a8a0098
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 a8a0098

Please sign in to comment.