Remove donations link

On dearest App Store Review Team request
This commit is contained in:
Arkadiusz Fal 2022-10-26 18:51:35 +02:00
parent 1fe01808a4
commit 70bee1a1ef
2 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,6 @@ struct Help: View {
static let discordURL = URL(string: "https://yattee.stream/discord")!
static let issuesURL = URL(string: "https://github.com/yattee/yattee/issues")!
static let milestonesURL = URL(string: "https://github.com/yattee/yattee/milestones")!
static let donationsURL = URL(string: "https://github.com/yattee/yattee/wiki/Donations")!
static let contributingURL = URL(string: "https://github.com/yattee/yattee/wiki/Contributing")!
static let translationsURL = URL(string: "https://hosted.weblate.org/engage/yattee/")!
@ -69,7 +68,6 @@ struct Help: View {
.padding(.bottom, 8)
VStack(alignment: .leading, spacing: 8) {
helpItemLink("Donations".localized(), url: Self.donationsURL, systemImage: "dollarsign.circle")
helpItemLink("Contributing".localized(), url: Self.contributingURL, systemImage: "hammer")
helpItemLink("Translations".localized(), url: Self.translationsURL, systemImage: "flag")
}

View File

@ -35,7 +35,7 @@ struct InstancesSettings: View {
Spacer()
}
if !selectedInstance.isNil, selectedInstance.app.supportsAccounts {
if !selectedInstance.isNil, selectedInstance.app.supportsAccounts, !accounts.isDemo {
SettingsHeader(text: "Accounts".localized())
let list = List(selection: $selectedAccount) {
@ -114,11 +114,13 @@ struct InstancesSettings: View {
if selectedInstance != nil {
HStack {
Button("Add Account...") {
selectedAccount = nil
presentingAccountForm = true
if !accounts.isDemo {
Button("Add Account...") {
selectedAccount = nil
presentingAccountForm = true
}
.disabled(!selectedInstance.app.supportsAccounts)
}
.disabled(!selectedInstance.app.supportsAccounts)
Spacer()