From f1a6b2d43aa419837167d592bd3c501c0de57837 Mon Sep 17 00:00:00 2001 From: turtle601 Date: Mon, 31 Jul 2023 13:12:00 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20Oauth=20=ED=83=80=EC=9E=85=20?= =?UTF-8?q?=EB=B6=84=EB=A6=AC=20=EB=B0=8F=20=EC=A0=81=EC=9A=A9=20(#193)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/@types/oauth.types.ts | 1 + frontend/src/components/@common/LoginButton/LoginButton.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 frontend/src/@types/oauth.types.ts diff --git a/frontend/src/@types/oauth.types.ts b/frontend/src/@types/oauth.types.ts new file mode 100644 index 000000000..3dbe5eb87 --- /dev/null +++ b/frontend/src/@types/oauth.types.ts @@ -0,0 +1 @@ +export type Oauth = 'google' | 'kakao' | 'naver'; diff --git a/frontend/src/components/@common/LoginButton/LoginButton.tsx b/frontend/src/components/@common/LoginButton/LoginButton.tsx index 51ad3f07a..4fd1b0e19 100644 --- a/frontend/src/components/@common/LoginButton/LoginButton.tsx +++ b/frontend/src/components/@common/LoginButton/LoginButton.tsx @@ -6,9 +6,10 @@ import { OAUTH_BUTTON_MESSAGE, OAUTH_LINK } from '~/constants/api'; import KaKao from '~/assets/icons/oauth/kakao.svg'; import Naver from '~/assets/icons/oauth/naver.svg'; import Google from '~/assets/icons/oauth/google.svg'; +import { Oauth } from '~/@types/oauth.types'; interface LoginButtonProps { - type: 'google' | 'kakao' | 'naver'; + type: Oauth; } const LoginIcon: Record = {