feat(creator): 커뮤니티 아이템 표시를 통일한다
This commit is contained in:
@@ -4,7 +4,7 @@ struct CreatorChannelCommunityTabView: View {
|
||||
let creatorId: Int
|
||||
let isOwnCreatorChannel: Bool
|
||||
@ObservedObject var viewModel: CreatorChannelCommunityViewModel
|
||||
let onTapDetail: (CreatorChannelCommunityPostItem) -> Void
|
||||
let onTapDetail: (Int) -> Void
|
||||
|
||||
private let gridColumns = [
|
||||
GridItem(.flexible(), spacing: 0),
|
||||
@@ -69,11 +69,8 @@ struct CreatorChannelCommunityTabView: View {
|
||||
onTapMore: {
|
||||
viewModel.openReportMenu(post: post)
|
||||
},
|
||||
onTapPurchase: {
|
||||
viewModel.openPurchaseDialog(post: post)
|
||||
},
|
||||
onTapDetail: {
|
||||
onTapDetail(post)
|
||||
onTapDetail(post.postId)
|
||||
}
|
||||
)
|
||||
.onAppear {
|
||||
@@ -95,11 +92,8 @@ struct CreatorChannelCommunityTabView: View {
|
||||
CreatorChannelCommunityGridItem(
|
||||
post: post,
|
||||
isOwnPost: isOwnPost,
|
||||
onTapPurchase: {
|
||||
viewModel.openPurchaseDialog(post: post)
|
||||
},
|
||||
onTapDetail: {
|
||||
onTapDetail(post)
|
||||
onTapDetail(post.postId)
|
||||
}
|
||||
)
|
||||
.onAppear {
|
||||
|
||||
Reference in New Issue
Block a user