From e5d334afd9bb43e93dedccf6ae6c535de9bff7bd Mon Sep 17 00:00:00 2001 From: yoonyesol Date: Sun, 21 Jul 2024 02:52:00 +0900 Subject: [PATCH] =?UTF-8?q?Formatting:=20#35=20=EB=A1=9C=EA=B7=B8=EC=9D=B8?= =?UTF-8?q?=20=ED=8E=98=EC=9D=B4=EC=A7=80=EC=9D=98=20email=20=ED=95=84?= =?UTF-8?q?=EB=93=9C=EB=A5=BC=20id=20=ED=95=84=EB=93=9C=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/user/SignInPage.tsx | 10 +++++----- src/pages/user/SignUpPage.tsx | 1 + src/types/UserType.tsx | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/pages/user/SignInPage.tsx b/src/pages/user/SignInPage.tsx index f274eaa8..fe2540fc 100644 --- a/src/pages/user/SignInPage.tsx +++ b/src/pages/user/SignInPage.tsx @@ -15,7 +15,7 @@ export default function SignInPage() { } = useForm({ mode: 'onChange', defaultValues: { - email: '', + id: '', password: '', }, }); @@ -27,11 +27,11 @@ export default function SignInPage() { return (
- {/* 이메일(아이디) */} + {/* 아이디 */} {/* 비밀번호 */} diff --git a/src/pages/user/SignUpPage.tsx b/src/pages/user/SignUpPage.tsx index 931bba5c..eda8a5f1 100644 --- a/src/pages/user/SignUpPage.tsx +++ b/src/pages/user/SignUpPage.tsx @@ -22,6 +22,7 @@ export default function SignUpPage() { } = useForm({ mode: 'onChange', defaultValues: { + id: '', image: [], // 추후 이미지 전송 폼 분리 예정 email: '', emailVerificationCode: '', diff --git a/src/types/UserType.tsx b/src/types/UserType.tsx index 8270fd13..3966948c 100644 --- a/src/types/UserType.tsx +++ b/src/types/UserType.tsx @@ -1,10 +1,11 @@ // 회원가입, 로그인 시 필요한 유저 타입 정의 export type UserSignInForm = { - email: string; + id: string; password: string; }; export type UserSignUpForm = UserSignInForm & { + email: string; image: File[]; password: string; nickname: string;