-
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
Refactoring : 모임 상세 페이지 리팩토링 #229
Conversation
Labeler가 제목과 설명에 있는 특별한 텍스트와 일치하는 레이블을 적용했습니다. |
/> | ||
<div className="grow"> | ||
<Flex align="center"> | ||
<p className="text-paragraph-2 text-sign-secondary">{article.name}</p> |
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.
p3)
article을 구조분해 할당하여 각 사용하는 곳에서 article.
없이 사용할 수 있게 하는 방식으로 통일하는 게 어떤가요 ??
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.
Grouping에서의 isCaptain과 Article에서의 isCaptain을 구분 짓기 위해 이렇게 했는데, 더 좋은 방법이 있을까요?
|
||
import type { Article } from '@/apis/groups/type'; | ||
|
||
interface ArticleItemProps { | ||
article: Article; | ||
isBoardDetail?: boolean; | ||
isCaptain: 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.
p3)
호스트의 비중이 호스트 아닌사람 보다 적으니, isCaption의 default값을 false로 설정해두면 좋을 것 같네요 !
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.
isCaptain은 서버에서 받아오는 데이터가 필수로 들어가야하기 때문에 디폴트 설정이 필요 없습니다! 옵셔널로 할 때만 디폴트 설정을 넣으면 될 것 같아요
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.
LGTM 👍
코멘트 부분만 확인해주세용!
…ing-page Refactoring : 모임 상세 페이지 리팩토링
…ing-page Refactoring : 모임 상세 페이지 리팩토링
…ing-page Refactoring : 모임 상세 페이지 리팩토링
💡 왜 PR을 올렸나요?
💁 무엇이 어떻게 바뀌나요?
모임 상세 페이지를 디자인에 맞게 수정했습니다.
member api 및 notice api를 추가 후 연결했습니다.
Flex의 flex-column -> flex-col 로 변경 / Modal의 취소 text 워딩 변경(아니요 -> 아니오)
next 이미지의 remotePattern을 전체로 허용했습니다.
외부 url의 권한을 설정하지 않으면 에러가 뜨기 때문에, 개발 시 전체로 권한을 두고 후에 설정하는 것이 좋을 것 같아 전체 권한으로 두었습니다.
💬 리뷰어분들께