-
Notifications
You must be signed in to change notification settings - Fork 0
[OD-128] PostBase 컴포넌트 오류 해결 #76
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
Conversation
|
고생했다아 ~~~ |
| // 유저 차단 api | ||
| const sendBlock = async () => { |
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.
api호출함수에 맞춰서 postUserBlock으로 수정해주세용
| ? [ | ||
| { | ||
| text: '삭제', | ||
| action: () => { | ||
| setIsCommentDeleteConfirmationModalOpen(true); | ||
| setIsMenuVisible(false); | ||
| }, | ||
| icon: Delete, | ||
| color: 'red', | ||
| }, | ||
| ] | ||
| : [ | ||
| { | ||
| text: '신고하기', | ||
| action: () => { | ||
| setIsCommentReportModalOpen(true); | ||
| }, | ||
| icon: Report, | ||
| }, | ||
| { | ||
| text: '차단하기', | ||
| action: () => { | ||
| setIsBlockConfirmationModalOpen(true); | ||
| setIsMenuVisible(false); | ||
| }, | ||
| icon: Block, | ||
| }, | ||
| ]), |
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.
내 댓글 메뉴와 다른 사람 댓글 메뉴에 대한 객체 배열을 별도의 변수로 분리해서 작성하면 가독성이 좋아질 것 같아용 한번 고려해 보시고 더 괜찮은 방식으로 사용하시면 될 것 같습니다!!
| import { UserBlockAtom } from '../../../recoil/Home/BlockBottomSheetAtom'; | ||
| import { | ||
| IsCommentDeleteConfirmationModalOpenAtom, | ||
| IsCommentReportModalOpenAtom, | ||
| selectedCommentAtom, | ||
| } from '../../../recoil/Post/PostCommentAtom'; |
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.
/recoil/Home/BlockBottomSheetAtom 더 이상 사용 안 하시면 삭제해 주세요! Home 폴더 자체를 삭제하면 될 것 같습니다~~
주요 작업 내용
(댓글 api 및 모달 띄우는 로직이 CommentItem 밖에 있는 게 더 적절한 듯 하여..)
기타 작업 내용
(ClothingInfoItem을 매핑하는 컨테이너에서 gap을 주는 것으로 변경)
(content 더보기를 눌렀을 때 사진이 아래로 밀리는게 안좋은 것 같아서.. content를 맨 밑으로 내렸습니다.)
코드 리뷰 포인트
작업 화면
내 댓글 메뉴 버튼 클릭시
다른 유저 댓글 메뉴 버튼 클릭 시