Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: 수정 페이지 제작 #46

Merged
merged 3 commits into from
Jul 19, 2024
Merged

Feat: 수정 페이지 제작 #46

merged 3 commits into from
Jul 19, 2024

Conversation

eunji-0623
Copy link
Owner

@eunji-0623 eunji-0623 commented Jul 18, 2024

🔎 작업 내용

  • 수정 페이지 제작 (이전에 작성한 내용으로 form이 채워져 있도록 구현)
  • 기존에 등록 페이지 내부에 구현 했던 부분 RegisterForm 컴포넌트로 변경
  • 날짜, 시간, 이미지 처리 방식 변경

⚠️ 이슈

  • x

📢 전달사항

  • 지성님이 말씀해주신 중복 시간대 관련 이슈는 시간 처리 방식을 변경하면서 해결된 듯 합니다.
    (혹시 나중에 비슷한 오류 발생 시 말씀주세용 😭)

@eunji-0623 eunji-0623 requested review from MEGUMMY1 and Byukchong July 18, 2024 05:40
Copy link

netlify bot commented Jul 18, 2024

Deploy Preview for globalnomad-5-8 ready!

Name Link
🔨 Latest commit dd95075
🔍 Latest deploy log https://app.netlify.com/sites/globalnomad-5-8/deploys/6699e91b4a46c20008bf6f3a
😎 Deploy Preview https://deploy-preview-46--globalnomad-5-8.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@eunji-0623 eunji-0623 changed the title Feature 황은지 Feat: 수정 페이지 제작 Jul 18, 2024
import { useEffect } from 'react';
import { RegisterFormProps } from './RegisterForm.types';
import useEditMyActivity from '@/hooks/myActivity/useEditMyActivity';
import useResetRegisterState from '../../../hooks/myActivity/useResetRegisterState';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

상대경로보단 @ 사용이 좋을 거 같아요!

Copy link
Collaborator

@MEGUMMY1 MEGUMMY1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수정 파트가 구현이 까다로웠을텐데 정말 수고 많으셨습니다!!

Comment on lines 158 to 173
// form 제출이 가능한지 체크
const isAllFieldsValid = () => {
const { title, description, price } = getValues();
return (
!!title &&
!!description &&
!!price &&
!errors.title &&
!errors.description &&
!errors.price &&
selectedKateogorie.name !== '' &&
address !== '' &&
bannerImage.length !== 0 &&
isTimeFieldValid()
);
};
Copy link
Collaborator

@Byukchong Byukchong Jul 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요기 리액트 훅폼 getValues 보다는 watch() 추천드립니다!
얼마전 보민님과도 공유한 내용인데, getValues를 쓰게되면 직접 타이핑한 값(복붙제외)만 인식이 되어서 좀 번거롭더라구요..

@eunji-0623 eunji-0623 merged commit 1e26efd into master Jul 19, 2024
5 checks 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.

3 participants