diff --git a/src/api/auth/type.ts b/src/api/auth/type.ts index 62bdd9cf..60891c2e 100644 --- a/src/api/auth/type.ts +++ b/src/api/auth/type.ts @@ -3,7 +3,7 @@ export interface SignUpFormData { email: string; password: string; passwordCheck: string; - companyName: string; + favorite: string; } export type SignUpRequest = Omit; @@ -26,6 +26,13 @@ export interface MyInfoResponse { updatedAt: string; image: string; } +export interface UserInfoResponse { + id: number; + name: string; + email: string; + favorite: string; + image: string; +} export interface MyInfoRequest { image?: File | null; companyName: string; diff --git a/src/app/auths/signup/_components/SignupForm.tsx b/src/app/auths/signup/_components/SignupForm.tsx index ce88aa06..ac7daae2 100644 --- a/src/app/auths/signup/_components/SignupForm.tsx +++ b/src/app/auths/signup/_components/SignupForm.tsx @@ -117,16 +117,16 @@ const SignupForm = () => { signUpValidate({ value, name: 'companyName' }), + ...register('favorite', { + validate: (value) => signUpValidate({ value, name: 'favorite' }), }), }} - hasError={!!errors.companyName} - helperText={errors.companyName?.message} + hasError={!!errors.favorite} + helperText={errors.favorite?.message} />