Skip to content

Commit

Permalink
[Fix/BAR-266] 약관 페이지 헤더 수정 (#91)
Browse files Browse the repository at this point in the history
fix: 약관 페이지에서 헤더 수정
  • Loading branch information
miro-ring authored Feb 24, 2024
1 parent cee46b6 commit 27b05f5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/Layout/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ const Header = () => {

const pathname = usePathname();

const HeaderButtonGroup = () =>
pathname === ROUTES.LANDING ? <LoginButton /> : <UserButton />;
const HeaderButtonGroup = () => {
if (!pathname) return <LoginButton />;
if (pathname === ROUTES.LANDING) return <LoginButton />;
if (pathname.startsWith('/terms'))
return refreshToken ? <UserButton /> : <LoginButton />;
return <UserButton />;
};

return (
<header className={styles.header}>
Expand Down

0 comments on commit 27b05f5

Please sign in to comment.