Skip to content

Commit

Permalink
fix: 카카오 로그인 버튼 Link로 감싸기
Browse files Browse the repository at this point in the history
- #66
  • Loading branch information
SaaaHoP committed Oct 13, 2022
1 parent 6ea3d40 commit e21096c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/Login/KakaoLoginButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import Link from 'next/link';

import { kakaoLoginPath } from '@/lib/constants';

Expand All @@ -8,10 +9,12 @@ import { Wrapper } from './style';

const KakaoLoginButton = () => {
return (
<Wrapper href={kakaoLoginPath}>
<Icon icon="KakaoSymbol" width={21} height={20} />
<span>카카오 로그인</span>
</Wrapper>
<Link href={kakaoLoginPath} passHref>
<Wrapper>
<Icon icon="KakaoSymbol" width={21} height={20} />
<span>카카오 로그인</span>
</Wrapper>
</Link>
);
};

Expand Down

0 comments on commit e21096c

Please sign in to comment.