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 0451621 commit 5604100
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions components/Login/KakaoLoginButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
import React from 'react';
import Link from 'next/link';

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

import Icon from '@/components/atoms/Icon';

import { Wrapper } from './style';

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

export default KakaoLoginButton;

0 comments on commit 5604100

Please sign in to comment.