-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨어요~ 기능적인 추가는 다음 PR에서 진행하면 될 것 같으니
몇가지 수정할 사항만 짚고 넘어가면 될 것 같아요.
- 반응형 대응이 필요하다
- 저장버튼 및 별점 상점에 대한 정보
- 사진 추가 시 서버에 업로드 후 해당 사진 활용
2, 3번은 다음 PR에서 진행해도 될 것 같은데, 에디터 부분의 반응형 디자인은 이번 PR에서 잡고가는게 좋아보여요!
const [opened, active, inActive] = useBooleanState(false); | ||
useEffect(() => { | ||
if (imageList === null || imageList.length === 0) inActive(); | ||
else active(); | ||
}, [imageList, active, inActive]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
얘내들을 모아서 로직을 분리한다면, useWisiwygImageOpen
같은 훅으로 모아서 useEffect를 넣어두는 쪽으로 작성한다면 컴포넌트에 로직이 뭉치는 것을 방지할 수 있을 것 같아요
There was a problem hiding this comment.
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
에도 쓰이고 있어 컴포넌트를 나눠준다면 더 복잡해지지 않을까요..?!
There was a problem hiding this 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을 병합하고 수정할게 더 있을지 한번 확인해보세요. 전부 괜찮다면 그때 병합해도 괜찮을 것 같네요.
Feature/#81 PR 수정
[#71] post
Please check if the PR fulfills these requirements
develop
branch, not themain
branchyarn lint
사진 선택의 세세한 기능과 별점에 따른 숫자 부분은 다음 pr로 올리도록하겠습니다.
Screenshot