Skip to content

Commit

Permalink
refactor: route 상수 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
cruelladevil committed Sep 11, 2023
1 parent 2416647 commit 3f4a351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/shared/components/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const Header = () => {
<Logo src={logo} alt="logo" aria-hidden="true" />
</Link>
{user ? (
<Link to="/my-page">
<Link to={`/${ROUTE_PATH.MY_PAGE}`}>
<ProfileAvatar src={shookshook} />
</Link>
) : (
<Link to="/login">
<Link to={ROUTE_PATH.LOGIN}>
<LoginButton>로그인</LoginButton>
</Link>
)}
Expand Down

0 comments on commit 3f4a351

Please sign in to comment.