-
Notifications
You must be signed in to change notification settings - Fork 6
Feat : 즐겨찾기 기능 구현 #94
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
|
고생하셨습니다! |
| /> | ||
| {/* isFavoritePage일 때만 즐겨찾기 버튼 렌더링 */} | ||
| {!isFavoritePage && ( | ||
| <div |
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.
케밥 버튼과 즐겨찾기 버튼이 isFavoritePage이냐 아니냐에 따라서 조건부 렌더링이 되니
컴포넌트로 따로 만들어도 좋을 것 같다는 생각이 드네요!
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.
오 리팩토링 때 진행해보겠습니다~!
| </div> | ||
| <CardsLayout> | ||
| {linkCardList.map((link) => ( | ||
| <LinkCard |
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.
컴포넌트가 많이 가벼워진게 보기 좋네요!
| await putLinkFavorite(info.id, { favorite: !isSubscribed }); | ||
| updateFavorite(info.id, !isSubscribed); | ||
| } catch (error) { | ||
| console.error("즐겨찾기 설정 중 오류 발생:", error); |
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.
이 부분보다는 드롭다운에 수정하기, 삭제하기 했을 때 토스팅 적용이 더 나을 것 같습니다!
hongggyelim
left a comment
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.
수고하셨습니닷!
이슈번호 #85
작업내용