Skip to content

Commit

Permalink
Remove Reddit account link from release notes page
Browse files Browse the repository at this point in the history
  • Loading branch information
ealymbaev committed May 8, 2024
1 parent f1fe656 commit 3829cf1
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 38 deletions.

This file was deleted.

Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ enum AppConfig {
static let appGitHubRepository = "unstoppable-wallet-ios"
static let appTwitterAccount = "unstoppablebyhs"
static let appTelegramAccount = "unstoppable_announcements"
static let appRedditAccount = "UNSTOPPABLEWallet"
static let mempoolSpaceUrl = "https://mempool.space"
static let guidesIndexUrl = URL(string: "https://raw.githubusercontent.com/horizontalsystems/blockchain-crypto-guides/v1.2/index.json")!
static let faqIndexUrl = URL(string: "https://raw.githubusercontent.com/horizontalsystems/unstoppable-wallet-website/master/src/faq.json")!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,6 @@ class ReleaseNotesViewController: MarkdownViewController {
telegramButton.addTarget(self, action: #selector(onTelegramTap), for: .touchUpInside)
telegramButton.setImage(UIImage(named: "filled_telegram_24"), for: .normal)

let redditButton = UIButton()
bottomHolder.addSubview(redditButton)
redditButton.snp.makeConstraints { maker in
maker.leading.equalTo(telegramButton.snp.trailing).offset(CGFloat.margin8)
maker.top.bottom.equalToSuperview()
maker.width.equalTo(52)
}

redditButton.addTarget(self, action: #selector(onRedditTap), for: .touchUpInside)
redditButton.setImage(UIImage(named: "filled_reddit_24"), for: .normal)

let followUsLabel = UILabel()
bottomHolder.addSubview(followUsLabel)
followUsLabel.snp.makeConstraints { maker in
Expand Down Expand Up @@ -116,10 +105,6 @@ class ReleaseNotesViewController: MarkdownViewController {
@objc private func onTelegramTap() {
urlManager.open(url: "https://t.me/\(AppConfig.appTelegramAccount)", from: nil)
}

@objc private func onRedditTap() {
urlManager.open(url: "https://www.reddit.com/r/\(AppConfig.appRedditAccount)", from: nil)
}
}

extension ReleaseNotesViewController: UIAdaptivePresentationControllerDelegate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ struct AddressViewNew: View {
ScanQrViewNew(pasteEnabled: true) {
viewModel.didFetch(qrText: $0)
}
.ignoresSafeArea()
}
.sheet(isPresented: $viewModel.contactsPresented) {
if let blockchainType = viewModel.blockchainType {
ContactBookView(mode: .select(blockchainType, viewModel), presented: true)
.ignoresSafeArea()
}
}
}
Expand Down

0 comments on commit 3829cf1

Please sign in to comment.