always show offer

sync3
Laurent 2 months ago
parent 488e33e253
commit a80e2c6945
  1. 42
      PadelClub/Views/Navigation/Umpire/UmpireView.swift

@ -48,28 +48,26 @@ struct UmpireView: View {
List { List {
PurchaseListView() PurchaseListView()
if Guard.main.currentPlan != .monthlyUnlimited { Section {
Section { Button {
Button { self.showSubscriptions = true
self.showSubscriptions = true } label: {
} label: { Label("Les offres", systemImage: "bookmark.fill")
Label("Les offres", systemImage: "bookmark.fill") }.simultaneousGesture(
}.simultaneousGesture( LongPressGesture()
LongPressGesture() .onEnded { _ in
.onEnded { _ in self.showProductIds = true
self.showProductIds = true }
} )
)
.highPriorityGesture(
.highPriorityGesture( TapGesture()
TapGesture() .onEnded { _ in
.onEnded { _ in self.showSubscriptions = true
self.showSubscriptions = true }
} )
)
}
} }
if StoreCenter.main.isAuthenticated { if StoreCenter.main.isAuthenticated {

Loading…
Cancel
Save