커뮤니티 게시물 등록 API 적용,
채널 프로필 API - 커뮤니티 게시물 추가
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
import SwiftUI
|
||||
|
||||
struct CreatorCommunityNoPostsItemView: View {
|
||||
|
||||
let onSuccess: () -> Void
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 10.3) {
|
||||
CreatorCommunityWriteItemView()
|
||||
@@ -26,11 +29,15 @@ struct CreatorCommunityNoPostsItemView: View {
|
||||
.frame(maxWidth: .infinity)
|
||||
.background(Color(hex: "222222"))
|
||||
.cornerRadius(10.3)
|
||||
.contentShape(Rectangle())
|
||||
.onTapGesture {
|
||||
AppState.shared.setAppStep(step: .creatorCommunityWrite(onSuccess: onSuccess))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct CreatorCommunityNoPostsItemView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
CreatorCommunityNoPostsItemView()
|
||||
CreatorCommunityNoPostsItemView {}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user