Skip to content

Commit

Permalink
feat: 마이페이지 진입점 만들기 (#968)
Browse files Browse the repository at this point in the history
* feat: 홈페이지에서 마이페이지 진입점 추가

* feat: 주소에 따라 예약자 관련 페이지일 경우 예약자 마이페이지로 분기
2yunseong authored Apr 2, 2024
1 parent 75652b6 commit 1668e90
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions frontend/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -57,9 +57,16 @@ const Header = ({ onClickLogin }: HeaderProps): JSX.Element => {
</Styled.HeaderLink>
<Styled.ButtonContainer>
{accessToken ? (
<Styled.TextButton variant="text" onClick={handleLogout}>
로그아웃
</Styled.TextButton>
<>
<Styled.TextLink
to={location.pathname.includes('/guest') ? PATH.GUEST_MAIN : PATH.MANAGER_MAP_LIST}
>
마이 페이지
</Styled.TextLink>
<Styled.TextButton variant="text" onClick={handleLogout}>
로그아웃
</Styled.TextButton>
</>
) : (
<>
<Styled.TextLink to={PATH.GUEST_NON_LOGIN_RESERVATION_SEARCH}>

0 comments on commit 1668e90

Please sign in to comment.