From b9b8f96a76dddf71d1758cb61c6dacd9776959c6 Mon Sep 17 00:00:00 2001 From: jisu Seo Date: Sat, 6 Jan 2024 20:05:34 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=20?= =?UTF-8?q?=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85=20=EB=B2=84=ED=8A=BC=20=20->=20=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Auth/KakaoLoginButton.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/Auth/KakaoLoginButton.tsx b/src/components/Auth/KakaoLoginButton.tsx index 8d871741..aba29b0f 100644 --- a/src/components/Auth/KakaoLoginButton.tsx +++ b/src/components/Auth/KakaoLoginButton.tsx @@ -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 ( - + ); };