Remove donation action

pull/2/head
Michael Scoff 7 years ago
parent 8a488ffda2
commit de47391244
  1. 3
      Trust/InCoordinator.swift
  2. 1
      Trust/Settings/Coordinators/SettingsCoordinator.swift
  3. 1
      Trust/Settings/Types/Constants.swift
  4. 1
      Trust/Settings/Types/SettingsAction.swift
  5. 9
      Trust/Settings/ViewControllers/SettingsViewController.swift

@ -175,9 +175,6 @@ extension InCoordinator: SettingsCoordinatorDelegate {
restart(for: transactionCoordinator.session.account, in: transactionCoordinator)
case .pushNotifications:
break
case .donate(let address):
guard let transactionCoordinator = transactionCoordinator else { return }
transactionCoordinator.showPaymentFlow(for: .send(type: .ether(destination: address)))
}
}

@ -64,7 +64,6 @@ extension SettingsCoordinator: SettingsViewControllerDelegate {
showAccounts()
case .RPCServer: break
case .currency: break
case .donate: break
case .pushNotifications(let enabled):
switch enabled {
case true:

@ -16,6 +16,7 @@ public struct Constants {
// support
public static let supportEmail = "support@trustwalletapp.com"
public static let donationAddress = "0x9f8284ce2cf0c8ce10685f537b1fff418104a317"
}
public struct UnitConfiguration {

@ -6,6 +6,5 @@ enum SettingsAction {
case wallets
case RPCServer
case currency
case donate(address: Address)
case pushNotifications(enabled: Bool)
}

@ -13,7 +13,6 @@ protocol SettingsViewControllerDelegate: class {
class SettingsViewController: FormViewController {
struct Values {
static let donationAddress = Address(address: "0x9f8284ce2cf0c8ce10685f537b1fff418104a317")
static let currencyPopularKey = "0"
static let currencyAllKey = "1"
}
@ -202,14 +201,6 @@ class SettingsViewController: FormViewController {
cell.imageView?.image = R.image.settings_email()
}
<<< AppFormAppearance.button { button in
button.title = NSLocalizedString("settings.donate.button.title", value: "Donate", comment: "")
}.onCellSelection { [unowned self] _, _ in
self.run(action: .donate(address: Values.donationAddress))
}.cellSetup { cell, _ in
cell.imageView?.image = R.image.settings_donate()
}
<<< link(
title: NSLocalizedString("settings.privacyPolicy.button.title", value: "Privacy Policy", comment: ""),
value: "https://trustwalletapp.com/privacy-policy.html",

Loading…
Cancel
Save