Skip to content

Commit

Permalink
refactor: Oauth 타입 분리 및 적용 (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
turtle601 committed Jul 31, 2023
1 parent e6ee4c4 commit f1a6b2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/@types/oauth.types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type Oauth = 'google' | 'kakao' | 'naver';
3 changes: 2 additions & 1 deletion frontend/src/components/@common/LoginButton/LoginButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, React.ReactNode> = {
Expand Down

0 comments on commit f1a6b2d

Please sign in to comment.