fix(gift): 상세 문의를 TALK에 연결한다
This commit is contained in:
@@ -7,6 +7,12 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
enum ServiceCenterInquiry {
|
||||
static func openTalk() {
|
||||
UIApplication.shared.open(URL(string: "http://pf.kakao.com/_lkxgxhG/chat")!)
|
||||
}
|
||||
}
|
||||
|
||||
struct ServiceCenterView: View {
|
||||
|
||||
@ObservedObject var viewModel = ServiceCenterViewModel()
|
||||
@@ -45,7 +51,7 @@ struct ServiceCenterView: View {
|
||||
.padding(.horizontal, 13.3)
|
||||
.padding(.top, 20)
|
||||
.onTapGesture {
|
||||
UIApplication.shared.open(URL(string: "http://pf.kakao.com/_lkxgxhG/chat")!)
|
||||
ServiceCenterInquiry.openTalk()
|
||||
}
|
||||
|
||||
Rectangle()
|
||||
|
||||
@@ -4,7 +4,6 @@ enum GiftConstants {
|
||||
static let termsURL = URL(string: "https://app.notion.com/p/3eb27b359673802b937ae741ab7b4ad3")
|
||||
static let damagePolicyURL = URL(string: "https://app.notion.com/p/3f227b3596738018ba5dea2e5205293b")
|
||||
static let addressSearchAvailable = false
|
||||
static let inquiryStep: AppStep = .serviceCenter
|
||||
static let feedbackStep: AppStep = .serviceCenter
|
||||
static let unavailableActionMessage = "준비 중입니다."
|
||||
static let courierCompanyNames = [
|
||||
|
||||
@@ -59,7 +59,7 @@ struct GiftCancelCompleteView: View {
|
||||
Button {
|
||||
guard !isNavigating else { return }
|
||||
isNavigating = true
|
||||
AppState.shared.setAppStep(step: GiftConstants.inquiryStep)
|
||||
ServiceCenterInquiry.openTalk()
|
||||
} label: {
|
||||
Text("문의하기")
|
||||
.appFont(.body2)
|
||||
|
||||
@@ -44,7 +44,7 @@ struct GiftDetailActionBar: View {
|
||||
Button {
|
||||
guard !isNavigating else { return }
|
||||
isNavigating = true
|
||||
AppState.shared.setAppStep(step: GiftConstants.inquiryStep)
|
||||
ServiceCenterInquiry.openTalk()
|
||||
} label: {
|
||||
secondaryLabel("문의하기", isEnabled: !isNavigating)
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ struct ReceivedGiftDetailActionBar: View {
|
||||
Button {
|
||||
guard !isNavigating else { return }
|
||||
isNavigating = true
|
||||
AppState.shared.setAppStep(step: GiftConstants.inquiryStep)
|
||||
ServiceCenterInquiry.openTalk()
|
||||
} label: {
|
||||
secondaryLabel("문의하기", isEnabled: !isNavigating)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user