Skip to content

Commit

Permalink
Merge pull request #94 from FinalDoubleTen/FE-60--feat/NewUser/NewLog…
Browse files Browse the repository at this point in the history
…in/Kakao

Refactor: 카카오 회원가입 버튼 <button> -> <a>로 수정
  • Loading branch information
jseo9732 authored Jan 8, 2024
2 parents 53e0b32 + b9b8f96 commit 9b92f1e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/Auth/KakaoLoginButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ const KakaoLoginButton = () => {
const REDIRECT_URI = `${window.location.href}/kakao`;
const KAKAO_LOGIN_URL = `https://kauth.kakao.com/oauth/authorize?client_id=${VITE_KAKAO_LOGIN_TEST_API_KEY}&redirect_uri=${REDIRECT_URI}&response_type=code`;

const onKakaoLoginClick = () => {
window.location.href = KAKAO_LOGIN_URL;
};

return (
<button
onClick={onKakaoLoginClick}
<a
href={KAKAO_LOGIN_URL}
className="body3 mb-2 flex h-14 w-full items-center justify-center gap-2 rounded-lg bg-[#fee304] p-2 text-['#3B1E1E']">
<KakaoIcon />
카카오로 로그인
</button>
</a>
);
};

Expand Down

0 comments on commit 9b92f1e

Please sign in to comment.