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

[INQUIRY] 문의하기 페이지 기능 #129

Merged
merged 33 commits into from
Jan 9, 2024
Merged

Conversation

junghaesung79
Copy link
Contributor

@junghaesung79 junghaesung79 commented Dec 23, 2023

[#99] request

문의하기 페이지의 기능을 구현했습니다.
코드 양이 많아질 것 같아 이미지를 넣은 양식의 제출 기능은 미완성인 상태로 pr합니다.

useSubmitInquiry 부분에서 문의하기 요청을 한 다음 navigate로 문의사항 페이지로 이동했을 때 문의 내용이 적용이 되지 않아서 window.location.reload()하는 방법을 썼는데 이 방법 말고 다른 좋은 방법이 있을까요?
queryClient.invalidateQueries({ queryKey: ['inquiry'] }) 해봤지만 생각대로 되지 않았습니다.

문의 사항을 보는 부분의 로직을 변경하여 해결하였습니다!

Please check if the PR fulfills these requirements

  • It's submitted to develop branch, not the main branch
  • The commit message follows our guidelines
  • There are no warning message when you run yarn lint
  • Docs updated for breaking changes

Screenshot

image
image
image

Copy link
Contributor

@kimeodml kimeodml left a comment

Choose a reason for hiding this comment

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

폴더 구조가 조금 복잡해 보여요. components 내부에 또 compnents를 두었는데 차라리 함수명 폴더로 놓는 게 더 구조적으로 편할 것 같아요!

src/pages/Inquiry/Inquire/components/InquireForm/index.tsx Outdated Show resolved Hide resolved
src/pages/Inquiry/Inquire/components/InquireForm/index.tsx Outdated Show resolved Hide resolved
src/pages/Inquiry/hooks/useSubmitInquiry.ts Outdated Show resolved Hide resolved
# Conflicts:
#	src/pages/Inquiry/Inquire/components/InquireForm/index.tsx
#	src/pages/Inquiry/Inquire/index.tsx
#	src/pages/Inquiry/Inquiry/components/InquiryList/InquiryBlock/index.tsx
#	src/pages/Inquiry/Inquiry/components/InquiryList/index.tsx
#	src/pages/Inquiry/Inquiry/components/InquirySelectButton/index.tsx
#	src/pages/Inquiry/Inquiry/hooks/useInquiryList.ts
#	src/pages/Inquiry/Inquiry/index.tsx
- useMeme, useCallback 사용
- 함수 축약
Copy link
Contributor

@hanagertrudeKim hanagertrudeKim left a comment

Choose a reason for hiding this comment

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

위 부분 다 해결되면 빠르게 머지해주세요~

@junghaesung79 junghaesung79 merged commit f9bf822 into develop Jan 9, 2024
1 check passed
hanagertrudeKim added a commit that referenced this pull request Jan 12, 2024
fix: 가게 당 리뷰 개수 10 설정
@junghaesung79 junghaesung79 deleted the feature/#105 branch February 3, 2024 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants