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

Feature/#71 글쓰기 페이지 #81

Merged
merged 16 commits into from
Jul 24, 2023
Merged

Feature/#71 글쓰기 페이지 #81

merged 16 commits into from
Jul 24, 2023

Conversation

hyejun0228
Copy link
Contributor

@hyejun0228 hyejun0228 commented Jul 4, 2023

[#71] post

  • 페이지 스크롤 기능 추가
  • 다중 이미지 파일 업로드 기능 추가
  • 글꼴 변경 기능 삭제

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

사진 선택의 세세한 기능과 별점에 따른 숫자 부분은 다음 pr로 올리도록하겠습니다.

Screenshot

스크린샷 2023-07-12 오후 2 38 47 스크린샷 2023-07-12 오후 2 39 05

Copy link
Member

@ChoiWonBeen ChoiWonBeen left a comment

Choose a reason for hiding this comment

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

고생하셨어요~ 기능적인 추가는 다음 PR에서 진행하면 될 것 같으니
몇가지 수정할 사항만 짚고 넘어가면 될 것 같아요.

  1. 반응형 대응이 필요하다
  2. 저장버튼 및 별점 상점에 대한 정보
  3. 사진 추가 시 서버에 업로드 후 해당 사진 활용

2, 3번은 다음 PR에서 진행해도 될 것 같은데, 에디터 부분의 반응형 디자인은 이번 PR에서 잡고가는게 좋아보여요!

src/components/MyInquiry/MyInquiry.module.scss Outdated Show resolved Hide resolved
src/components/editor/Wysiwyg/index.tsx Outdated Show resolved Hide resolved
Comment on lines +13 to 17
const [opened, active, inActive] = useBooleanState(false);
useEffect(() => {
if (imageList === null || imageList.length === 0) inActive();
else active();
}, [imageList, active, inActive]);
Copy link
Member

Choose a reason for hiding this comment

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

얘내들을 모아서 로직을 분리한다면, useWisiwygImageOpen 같은 훅으로 모아서 useEffect를 넣어두는 쪽으로 작성한다면 컴포넌트에 로직이 뭉치는 것을 방지할 수 있을 것 같아요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

const [opened, active, inActive] = useBooleanState(false); 에서 반환되는 값들이 useEffect 뿐만아니라 AddImage.tsx 에도 쓰이고 있어 컴포넌트를 나눠준다면 더 복잡해지지 않을까요..?!

@ChoiWonBeen ChoiWonBeen mentioned this pull request Jul 21, 2023
4 tasks
Copy link
Member

@ChoiWonBeen ChoiWonBeen left a comment

Choose a reason for hiding this comment

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

#89 PR 한번 확인해주시고 해당 PR을 먼저 병합한 뒤, 최신 develop을 병합하고 수정할게 더 있을지 한번 확인해보세요. 전부 괜찮다면 그때 병합해도 괜찮을 것 같네요.

@hyejun0228 hyejun0228 merged commit b8521e1 into develop Jul 24, 2023
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.

2 participants