Skip to content

Qnrr 375 유수아 내 프로필 수정에서 입력한 값 유효성 검증#91

Merged
aken-you merged 19 commits intodevelopfrom
QNRR-375-유수아-내-프로필-수정에서-입력한-값-유효성-검증
Jul 19, 2025

Hidden character warning

The head ref may contain hidden characters: "QNRR-375-\uc720\uc218\uc544-\ub0b4-\ud504\ub85c\ud544-\uc218\uc815\uc5d0\uc11c-\uc785\ub825\ud55c-\uac12-\uc720\ud6a8\uc131-\uac80\uc99d"
Merged

Qnrr 375 유수아 내 프로필 수정에서 입력한 값 유효성 검증#91
aken-you merged 19 commits intodevelopfrom
QNRR-375-유수아-내-프로필-수정에서-입력한-값-유효성-검증

Conversation

@aken-you
Copy link
Contributor

🌱 연관된 이슈

Qnrr 375

☘️ 작업 내용

1. input의 에러 안내 문구 추가

입력한 이름과 연락처가 형식에 맞지 않는데 서버에 요청을 보낼 경우, 에러 응답이 옵니다.
유효하지 않은 입력값을 입력하면 요청보내지 못하도록 막기 위해, 에러 문구를 추가하고 submit 버튼에 disabled 설정했습니다.

default.mov

2. ProfileEditForm

ProfileEditModal에 있는 폼을 ProfileEditForm 컴포넌트로 분리했습니다.
이전에는 모달에 작성한 입력값이 유지되는 문제가 있었습니다.

Modal.Root가 최상위 JSX인 ProfileEditModal에 폼 상태를 선언하면, 모달의 렌더링 여부와 상관없이 폼 상태가 프로필 정보로 초기화되지 않습니다.

2025-07-19.12.54.40.mov

따라서 폼 상태를 프로필 정보로 초기화하기 위해, 폼 컴포넌트로 분리하였습니다.

aken-you added 19 commits July 19, 2025 00:52
- 프로필 수정 요청을 2번 보내고 있어, onSubmit 삭제
- ProfileEditModal에서 폼상태를 관리하면 memberProfile이 변경돼도, 폼 상태가 변경되지 않음
@aken-you aken-you self-assigned this Jul 19, 2025
@aken-you aken-you merged commit 7eac077 into develop Jul 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant