From f8fc83c157e398c0a9dafe4b6fcfe879adc9ad13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=91=ED=98=84?= Date: Sat, 16 Sep 2023 20:42:16 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=EC=86=8C=EC=85=9C=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20=EA=B8=B0=EB=8A=A5=20=EB=A1=A4=EB=B0=B1=20=EC=86=8C?= =?UTF-8?q?=EC=85=9C=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=84=B1=EA=B3=B5?= =?UTF-8?q?=EC=8B=9C=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=99=95=EC=9D=B8=20?= =?UTF-8?q?=EB=AA=A8=EB=8B=AC=EC=B0=BD=EC=9D=84=20=EA=B1=B0=EC=B9=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EA=B3=A0,=20=ED=95=9C=EB=B2=88=20?= =?UTF-8?q?=EB=8D=94=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EB=B2=84=ED=8A=BC?= =?UTF-8?q?=EC=9D=84=20=EB=88=8C=EB=9F=AC=EC=95=BC=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=EC=99=84=EB=A3=8C=EB=90=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EB=A1=A4=EB=B0=B1=20Issues=20#15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/Logins/LoginConfirmatationModal.tsx | 2 -- client/src/components/Logins/OAuthLogin.tsx | 7 ++----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/client/src/components/Logins/LoginConfirmatationModal.tsx b/client/src/components/Logins/LoginConfirmatationModal.tsx index f4675ee5..7571ecf6 100644 --- a/client/src/components/Logins/LoginConfirmatationModal.tsx +++ b/client/src/components/Logins/LoginConfirmatationModal.tsx @@ -1,6 +1,5 @@ import React from 'react'; import styled from 'styled-components'; -import TokenHandler from './TokenHandler'; const LoginConfirmationModal: React.FC = ({ onClose }) => { const messageText = "로그인이 성공적으로 완료되었습니다!"; @@ -9,7 +8,6 @@ const LoginConfirmationModal: React.FC = ({ onClose }) = return ( - {messageText} {confirmText} diff --git a/client/src/components/Logins/OAuthLogin.tsx b/client/src/components/Logins/OAuthLogin.tsx index 7a3aa809..0591a9b7 100644 --- a/client/src/components/Logins/OAuthLogin.tsx +++ b/client/src/components/Logins/OAuthLogin.tsx @@ -4,7 +4,7 @@ import GoogleLoginButton from './GoogleLoginButton'; import KakaoLoginButton from './KakaoLoginButton'; import { useSelector } from 'react-redux'; import { RootState } from '../../store/config'; - +import TokenHandler from './TokenHandler'; const OAuthLoginModal: React.FC = ({ onClose, onEmailLoginClick, onEmailSignupClick, onLoginSuccess }) => { const titleText = "로그인"; @@ -14,9 +14,6 @@ const OAuthLoginModal: React.FC = ({ onClose, onEmailLoginClick const loginState = useSelector((state: RootState) => state.login); - - - useEffect(() => { if (loginState === 1) { onLoginSuccess(); @@ -27,7 +24,7 @@ const OAuthLoginModal: React.FC = ({ onClose, onEmailLoginClick return ( - + × {titleText}