From c58df1e9a725290012ea14a6be3d2e7b2716abcd Mon Sep 17 00:00:00 2001 From: JAEMOONLEE Date: Fri, 29 Dec 2023 11:23:25 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20Complete=20=EB=B2=84=ED=8A=BC=20disabl?= =?UTF-8?q?ed=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/userInfo/editProfile.tsx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/pages/userInfo/editProfile.tsx b/pages/userInfo/editProfile.tsx index 1a0f02a..387bfd8 100644 --- a/pages/userInfo/editProfile.tsx +++ b/pages/userInfo/editProfile.tsx @@ -15,7 +15,6 @@ import { UserInfoProps } from '@/context/UserInfoProvider.tsx'; import useModal from '@/hooks/useModal.ts'; import { uploadFile } from '@/api/room'; import { ImageListType } from 'react-images-uploading'; -import { RoomFile } from '@/public/types/room'; interface ProfileProps { _imageSrc: string; @@ -100,19 +99,6 @@ export default function EditProfile({ _imageSrc, userInfo }: ProfileProps) { const genderButtons = [{ label: 'Male' }, { label: 'Female' }, { label: 'Others' }]; - const disabledYn = () => { - setTimeout(() => { - return ( - (imageSrc || '') === '' || - !watch('firstName') || - !watch('lastName') || - !watch('dateOfBirth') || - !watch('describe') || - !buttonState - ); - }, 1000); - }; - const ProfileImage = ({ onClick }: ImageComponentClickProps) => { return (
@@ -167,7 +153,6 @@ export default function EditProfile({ _imageSrc, userInfo }: ProfileProps) { register={register('email', { validate: (value) => { return isRequired(value, '필수 항목') || isValidEmail(value, `Invalid email`); - // return true; }, })} error={errors.email as FieldError}