feat(channel): 선물 발송 화면을 연결한다
This commit is contained in:
@@ -55,6 +55,8 @@ struct CreatorChannelHeaderSection: View {
|
|||||||
.multilineTextAlignment(.center)
|
.multilineTextAlignment(.center)
|
||||||
|
|
||||||
CreatorChannelTalkActionSection(
|
CreatorChannelTalkActionSection(
|
||||||
|
recipientMemberId: creator.creatorId,
|
||||||
|
recipientCreatorNickname: creator.nickname,
|
||||||
isAiChatAvailable: creator.isAiChatAvailable,
|
isAiChatAvailable: creator.isAiChatAvailable,
|
||||||
isDmAvailable: creator.isDmAvailable,
|
isDmAvailable: creator.isDmAvailable,
|
||||||
isOwnCreatorChannel: isOwnCreatorChannel,
|
isOwnCreatorChannel: isOwnCreatorChannel,
|
||||||
|
|||||||
+8
-1
@@ -1,6 +1,8 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct CreatorChannelTalkActionSection: View {
|
struct CreatorChannelTalkActionSection: View {
|
||||||
|
let recipientMemberId: Int
|
||||||
|
let recipientCreatorNickname: String
|
||||||
let isAiChatAvailable: Bool
|
let isAiChatAvailable: Bool
|
||||||
let isDmAvailable: Bool
|
let isDmAvailable: Bool
|
||||||
let isOwnCreatorChannel: Bool
|
let isOwnCreatorChannel: Bool
|
||||||
@@ -61,7 +63,12 @@ struct CreatorChannelTalkActionSection: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if shouldShowGiftButton {
|
if shouldShowGiftButton {
|
||||||
Button(action: {}) {
|
Button(action: {
|
||||||
|
AppState.shared.setAppStep(step: .giftSend(
|
||||||
|
recipientMemberId: recipientMemberId,
|
||||||
|
recipientCreatorNickname: recipientCreatorNickname
|
||||||
|
))
|
||||||
|
}) {
|
||||||
Text(I18n.CreatorChannelHome.sendGift)
|
Text(I18n.CreatorChannelHome.sendGift)
|
||||||
.appFont(size: 16, weight: .medium)
|
.appFont(size: 16, weight: .medium)
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
|
|||||||
Reference in New Issue
Block a user