Skip to content

Commit

Permalink
Merge pull request #226 from bsideproject/feature/user
Browse files Browse the repository at this point in the history
[feat] Complete 버튼 disabled 수정
  • Loading branch information
KinDDoGGang authored Dec 29, 2023
2 parents de75504 + c58df1e commit b9569d8
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 b9569d8

Please sign in to comment.