Adds patch button for the right user only

multistore
Laurent 1 year ago
parent 9e8fe04633
commit e65eef2b1c
  1. 3
      PadelClub/Views/Navigation/Toolbox/ToolboxView.swift

@ -20,11 +20,14 @@ struct ToolboxView: View {
Section { Section {
Text("Version de l'application").badge(PadelClubApp.appVersion) Text("Version de l'application").badge(PadelClubApp.appVersion)
SupportButtonView(contentIsUnavailable: false) SupportButtonView(contentIsUnavailable: false)
if Store.main.userId == "94f45ed2-8938-4c32-a4b6-e4525073dd33" {
Button { Button {
Patcher.applyIfNeeded() Patcher.applyIfNeeded()
} label: { } label: {
Text("Patch") Text("Patch")
} }
}
} }

Loading…
Cancel
Save