feat(channel): 공유 진입점을 연결한다
This commit is contained in:
@@ -16,6 +16,7 @@ struct ProfileReportMenuView: View {
|
||||
let userUnBlockAction: () -> Void
|
||||
let userReportAction: () -> Void
|
||||
let profileReportAction: () -> Void
|
||||
var channelShareAction: (() -> Void)? = nil
|
||||
|
||||
var body: some View {
|
||||
ZStack {
|
||||
@@ -28,6 +29,23 @@ struct ProfileReportMenuView: View {
|
||||
Spacer()
|
||||
|
||||
VStack(spacing: 13.3) {
|
||||
if let channelShareAction = channelShareAction {
|
||||
HStack(spacing: 0) {
|
||||
Text(I18n.CreatorChannelHome.channelShare)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.padding(.vertical, 8)
|
||||
.padding(.horizontal, 26.7)
|
||||
.contentShape(Rectangle())
|
||||
.onTapGesture {
|
||||
isShowing = false
|
||||
channelShareAction()
|
||||
}
|
||||
}
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text(isBlockedUser ? I18n.User.unblockUserAction : I18n.User.blockUserAction)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
|
||||
Reference in New Issue
Block a user