diff --git a/GME Remit/AppDelegate.swift b/GME Remit/AppDelegate.swift index f5cc558b..81547a96 100644 --- a/GME Remit/AppDelegate.swift +++ b/GME Remit/AppDelegate.swift @@ -269,7 +269,7 @@ extension AppDelegate: UNUserNotificationCenterDelegate { case .howToDeposit: HowToDepositWireframe().open(on: baseVC) case .redirect: -// openURL(link: <#T##String#>) + openURL(userInfo: userInfo) break default: break @@ -300,18 +300,19 @@ extension AppDelegate: UNUserNotificationCenterDelegate { } func openURL(userInfo: [String : AnyObject]?) { -// guard -// let aps = userInfo?["aps"] as? [String: AnyObject], -// let destination = aps["category"] as? String, -// let destinationType = PushNotificationAction.getAction(target: destination) -// guard let webController = UIStoryboard(name: "Storyboard", bundle: nil) -// .instantiateViewController(withIdentifier: "WebLinksViewController") as? WebLinksViewController -// else { return } -// -//// webController.titleString = item.title ?? "Notification" -// webController.url = link -// let nav = UINavigationController.init(rootViewController: webController) -// NotificationHistoryWireframe().open(on: nav) + guard + let aps = userInfo?["aps"] as? [String: AnyObject], + let destination = aps["category"] as? String else { + return + } + guard let webController = UIStoryboard(name: "Storyboard", bundle: nil) + .instantiateViewController(withIdentifier: "WebLinksViewController") as? WebLinksViewController + else { return } + +// webController.titleString = item.title ?? "Notification" + webController.url = destination + let nav = UINavigationController.init(rootViewController: webController) + NotificationHistoryWireframe().open(on: nav) } extension AppDelegate { diff --git a/GME Remit/Modules/InviteUser/User Interface/View/InviteUser.storyboard b/GME Remit/Modules/InviteUser/User Interface/View/InviteUser.storyboard index 8d80ae95..f7a70057 100644 --- a/GME Remit/Modules/InviteUser/User Interface/View/InviteUser.storyboard +++ b/GME Remit/Modules/InviteUser/User Interface/View/InviteUser.storyboard @@ -23,33 +23,33 @@ + + + + + + + - + - - - - - - - - + + - - + + + diff --git a/GME Remit/Modules/InviteUser/User Interface/View/InviteView.swift b/GME Remit/Modules/InviteUser/User Interface/View/InviteView.swift index 71c69f75..1a658a48 100644 --- a/GME Remit/Modules/InviteUser/User Interface/View/InviteView.swift +++ b/GME Remit/Modules/InviteUser/User Interface/View/InviteView.swift @@ -28,7 +28,7 @@ class InviteView: UIView { lazy var referNowTitleLabel: UILabel = { let label = UILabel() - label.text = "your_referral_code_text".localized() + label.text = "refer_now_text".localized() label.font = .sanfrancisco(.bold, size: 16) label.textColor = .themeBlack label.translatesAutoresizingMaskIntoConstraints = false diff --git a/GME Remit/Modules/NotificationList/User Interface/View/NotificationList.storyboard b/GME Remit/Modules/NotificationList/User Interface/View/NotificationList.storyboard index b732976f..579e0e77 100644 --- a/GME Remit/Modules/NotificationList/User Interface/View/NotificationList.storyboard +++ b/GME Remit/Modules/NotificationList/User Interface/View/NotificationList.storyboard @@ -48,7 +48,7 @@ -