댓글 추가 불가능 한 포스트의 경우 댓글 영역이 보이지 않도록 수정

This commit is contained in:
Yu Sung 2023-12-21 23:58:44 +09:00
parent acdacbfb7b
commit 85044d901f
1 changed files with 10 additions and 8 deletions

View File

@ -97,6 +97,7 @@ struct CreatorCommunityAllItemView: View {
} }
.frame(maxWidth: .infinity, alignment: .leading) .frame(maxWidth: .infinity, alignment: .leading)
if item.isCommentAvailable {
CreatorCommunityCommentView( CreatorCommunityCommentView(
commentCount: item.commentCount, commentCount: item.commentCount,
commentItem: item.firstComment, commentItem: item.firstComment,
@ -108,6 +109,7 @@ struct CreatorCommunityAllItemView: View {
} }
} }
} }
}
.padding(.horizontal, 8) .padding(.horizontal, 8)
.padding(.vertical, 11) .padding(.vertical, 11)
.background(Color(hex: "222222")) .background(Color(hex: "222222"))