-
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
[FE] 리뷰 삭제 기능 구현 #780
[FE] 리뷰 삭제 기능 구현 #780
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.
두번 읽었어요 잘 했어요
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 handleReviewDelete: MouseEventHandler<HTMLButtonElement> = (e) => { | ||
e.preventDefault(); | ||
|
||
const result = window.confirm('리뷰를 삭제하시겠습니까?'); |
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 { reviewId, productName, content, rating, favoriteCount } = review; | ||
|
||
const handleReviewDelete: MouseEventHandler<HTMLButtonElement> = (e) => { | ||
e.preventDefault(); |
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.
클릭이벤트에 어떤 동작을 막기 위해 썼나요? 궁금합니다!
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.
그 리뷰를 클릭하면 리뷰 상세페이지로 이동하는게 그거 막으려고 썼습니다!
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.
리스트에 링크가 있군요..! 좋습니다 👍
|
||
interface MemberReviewItemProps { | ||
review: MemberReview; | ||
isMemberPage: boolean; |
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.
회원 리뷰면 이 prop은 없어도 될거 같아요!
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.
이게 마이페이지에서 리뷰 전체 목록을 눌렀을 때만 삭제 아이콘이 뜨게끔 하기 위해서 저 prop을 추가한거에요! 만약 네이밍이 헷갈리다면 isMemberReviewListPage
이런식으로 바꿀까요??
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.
타미 의견도 좋고 미리보기를 기준으로 한다면 isPreview도 괜찮아보여요.!
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.
d990fe1
수정했슴다~
Issue
✨ 구현한 기능
📢 논의하고 싶은 내용
🎸 기타
x
⏰ 일정