feat(creator): 플로팅 액션 진입을 연결한다
This commit is contained in:
@@ -55,7 +55,7 @@ struct ContentListView: View {
|
||||
.cornerRadius(5.3)
|
||||
.padding(.top, 13.3)
|
||||
.padding(.horizontal, 13.3)
|
||||
.onTapGesture { AppState.shared.setAppStep(step: .createContent) }
|
||||
.onTapGesture { AppState.shared.setAppStep(step: .createContent()) }
|
||||
}
|
||||
|
||||
HStack(spacing: 13.3) {
|
||||
|
||||
@@ -10,6 +10,7 @@ import Kingfisher
|
||||
|
||||
struct ContentCreateView: View {
|
||||
@Environment(\.locale) private var locale
|
||||
let onSuccess: (() -> Void)?
|
||||
|
||||
@StateObject var keyboardHandler = KeyboardHandler()
|
||||
@StateObject private var viewModel = ContentCreateViewModel()
|
||||
@@ -23,6 +24,10 @@ struct ContentCreateView: View {
|
||||
@State private var isShowSelectThemeView = false
|
||||
@State private var isShowSelectDateView = false
|
||||
@State private var isShowSelectTimeView = false
|
||||
|
||||
init(onSuccess: (() -> Void)? = nil) {
|
||||
self.onSuccess = onSuccess
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
let normalizedCountryCode = UserDefaults
|
||||
@@ -655,7 +660,10 @@ struct ContentCreateView: View {
|
||||
title: I18n.CreateContent.uploadTitle,
|
||||
desc: I18n.CreateContent.uploadDescription,
|
||||
confirmButtonTitle: I18n.Common.confirm,
|
||||
confirmButtonAction: { AppState.shared.back() },
|
||||
confirmButtonAction: {
|
||||
onSuccess?()
|
||||
AppState.shared.back()
|
||||
},
|
||||
cancelButtonTitle: "",
|
||||
cancelButtonAction: {}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user