-
Notifications
You must be signed in to change notification settings - Fork 70
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/PreviewParameterProvider] Preview Parameter Provider 추가 #325
[Feature/PreviewParameterProvider] Preview Parameter Provider 추가 #325
Conversation
Test Results19 tests 19 ✅ 5s ⏱️ Results for commit 7cdd4f3. ♻️ This comment has been updated with latest results. |
@@ -77,14 +79,25 @@ internal fun BookmarkCard( | |||
} | |||
} | |||
|
|||
class RoomPreviewParameterProvider : PreviewParameterProvider<Room> { |
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.
모듈 내부에 만 있다보니 internal
키워두 있는것이 좋을것 같네요.
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.
넵! 모듈 내부에서 사용하는 모든 PreviewParameterProvider
에 internal
키워드 추가했습니다 :)
BookMarkItemForPreview(isEditMode = true) | ||
BookMarkItemForPreview(isEditMode = true) | ||
BookMarkItemForPreview(isEditMode = isEditMode) | ||
BookMarkItemForPreview(isEditMode = isEditMode) |
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.
이 부분까지 PreviewParameterProvider
까지는 불필요해보이네요.
그리고 하나면 이미 2개가 뜰것 같군요.
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.
넵 알겠습니다!
이전 코드로 롤백시키기 보다는 하나의 Preview내부에서 true하나, false 하나 하여 모든 case를 볼 수 있도록 수정하였습니다. 리뷰 감사합니다 :)
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.
추가로 BookmarkedPreviewParameterProvider
또한 단순한 true/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.
고생하셨습니다!
Issue
Overview (Required)
Screenshot