Hide donation link in beta

This commit is contained in:
Davide 2024-11-07 23:10:26 +01:00
parent 8fbccc6d80
commit bfc0be45ae
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
3 changed files with 10 additions and 2 deletions

View File

@ -29,6 +29,10 @@ import PassepartoutKit
import SwiftUI import SwiftUI
struct AboutView: View { struct AboutView: View {
@EnvironmentObject
var iapManager: IAPManager
let profileManager: ProfileManager let profileManager: ProfileManager
@Binding @Binding

View File

@ -35,8 +35,10 @@ extension AboutView {
Group { Group {
linksLink linksLink
creditsLink creditsLink
if !iapManager.isRestricted {
donateLink donateLink
} }
}
.themeSection(header: Strings.Views.About.Sections.resources) .themeSection(header: Strings.Views.About.Sections.resources)
Section { Section {
diagnosticsLink diagnosticsLink

View File

@ -34,7 +34,9 @@ extension AboutView {
Section { Section {
linksLink linksLink
creditsLink creditsLink
if !iapManager.isRestricted {
donateLink donateLink
}
diagnosticsLink diagnosticsLink
} }
} }