크리에이터 채널 - 함께 들으면 좋은 채널 제거

This commit is contained in:
Yu Sung
2023-12-15 16:49:18 +09:00
parent c84f1042e3
commit b8fbb664d5
2 changed files with 18 additions and 90 deletions

View File

@@ -147,41 +147,24 @@ struct UserProfileView: View {
.padding(.top, 26.7)
}
VStack(spacing: 0) {
if creatorProfile.similarCreatorList.count > 0 {
VStack(spacing: 26.7) {
UserProfileSimilarCreatorView(
creators: creatorProfile.similarCreatorList,
onClickCreator: { viewModel.getCreatorProfile(userId: $0) }
)
.padding(.horizontal, 13.3)
Rectangle()
.frame(height: 6.7)
.foregroundColor(Color(hex: "909090").opacity(0.5))
}
.padding(.top, 26.7)
}
UserProfileFanTalkView(
userId: userId,
cheers: creatorProfile.cheers,
errorPopup: { message in
viewModel.errorMessage = message
viewModel.isShowPopup = true
},
reportPopup: { cheerId in
viewModel.cheersId = cheerId
viewModel.isShowCheersReportView = true
},
deletePopup: { cheerId in
viewModel.cheersId = cheerId
viewModel.isShowCheersDeleteView = true
},
isLoading: $viewModel.isLoading
)
.padding(.top, 26.7)
}
UserProfileFanTalkView(
userId: userId,
cheers: creatorProfile.cheers,
errorPopup: { message in
viewModel.errorMessage = message
viewModel.isShowPopup = true
},
reportPopup: { cheerId in
viewModel.cheersId = cheerId
viewModel.isShowCheersReportView = true
},
deletePopup: { cheerId in
viewModel.cheersId = cheerId
viewModel.isShowCheersDeleteView = true
},
isLoading: $viewModel.isLoading
)
.padding(.top, 26.7)
}
}
}