Skip to content

Commit

Permalink
[feat] Complete 버튼 disabled 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JAEMOONLEE committed Dec 29, 2023
1 parent de75504 commit c58df1e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pages/userInfo/editProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 (
<div className="flex justify-center items-center h-[90px] mt-[20px] mb-[36px]" onClick={onClick}>
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit c58df1e

Please sign in to comment.