Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Collaborator
Author
|
아직 이미지가 로딩될 때 스피너와 이미지가 선택 되었을 때 체크 표시 관련해서는 구현이 안 된 상태입니다. |
- Message 페이지 컴포넌트 구현 - PROFILE_IMAGE_URLS를 활용하여 10개의 프로필 이미지를 동적으로 표시 - 드롭다운을 클릭하면 목록이 펼쳐지도록 구현 - Input과 TextEditor에서 입력된 값을 기반으로 유효성 검사 - fetch를 이용해 메시지를 서버에 POST 요청 - useEffect를 활용해 외부 클릭 시 드롭다운 및 에러 메시지가 정상적으로 동작하도록 수정
kwonjin2
approved these changes
Mar 18, 2025
Collaborator
kwonjin2
left a comment
There was a problem hiding this comment.
테스트 해보고 의견 더 생기면 추가적으로 코멘트 달겠습니다! 고생하셨습니다!!
- 페이지 로딩 시, 프로필 버튼 이미지 불러올 동안 스피너 동작 - 선택한 프로필버튼에 체크 아이콘 표시
- TextEditor에서 폰트 반영 관련해서 useEffect와 인라인 중복 코드 발생해서 인라인 코드 제거 - Router에 MessagePage 반영하여 import Header 제거
Seung-wan
reviewed
Mar 20, 2025
| }; | ||
|
|
||
| // 상태 업데이트 헬퍼 함수 | ||
| const updateFormData = useCallback((newData) => { |
There was a problem hiding this comment.
const formData = {...formData, ...newFormData}
const isFormValid = validateForm(
updatedData.sender,
updatedData.textEditorContent,
);
setFormData(formData);
setFormStatus(prevStatus => ({
...prevStatus,
isFormValid,
}))| e.preventDefault(); | ||
| if (!isFormValid || isLoading) return; | ||
|
|
||
| updateFormStatus({ isLoading: true }); |
Comment on lines
+313
to
+344
| {i === 0 ? ( | ||
| <div className={styles.profileButtonWrapper}> | ||
| <ProfileButton | ||
| src={image} | ||
| onClick={() => handleProfileClick(image)} | ||
| /> | ||
| {selectedImage === image && ( | ||
| <img | ||
| src={CheckIcon} | ||
| alt="선택됨" | ||
| className={styles.checkIcon} | ||
| /> | ||
| )} | ||
| </div> | ||
| ) : formStatus.loadingImages[image] ? ( | ||
| <Spinner | ||
| size="md" | ||
| text={null} | ||
| className={styles.profileButton} | ||
| /> | ||
| ) : ( | ||
| <div className={styles.profileButtonWrapper}> | ||
| <ProfileButton | ||
| src={image} | ||
| onClick={() => handleProfileClick(image)} | ||
| /> | ||
| {selectedImage === image && ( | ||
| <img | ||
| src={CheckIcon} | ||
| alt="선택됨" | ||
| className={styles.checkIcon} | ||
| /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
#68
📝작업 내용
MessagePage 페이지 컴포넌트 구현
PROFILE_IMAGE_URLS를 활용하여 10개의 프로필 이미지를 동적으로 표시
드롭다운을 클릭하면 목록이 펼쳐지도록 구현
Input과 TextEditor에서 입력된 값을 기반으로 유효성 검사
fetch를 이용해 메시지를 서버에 POST 요청
useEffect를 활용해 외부 클릭 시 드롭다운 및 에러 메시지가 정상적으로 동작하도록 수정