From e493a2b79cd8c1e70e2aa2524e1cf10ba0cca7f2 Mon Sep 17 00:00:00 2001 From: andrey Date: Thu, 11 Feb 2021 14:26:35 +0100 Subject: [PATCH] [#11395] Inapp Keycard upsell MVP Signed-off-by: andrey --- .../ui/screens/multiaccounts/key_storage/views.cljs | 2 +- .../ui/screens/multiaccounts/login/views.cljs | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/status_im/ui/screens/multiaccounts/key_storage/views.cljs b/src/status_im/ui/screens/multiaccounts/key_storage/views.cljs index 9a2da716a7..401a27ba4b 100644 --- a/src/status_im/ui/screens/multiaccounts/key_storage/views.cljs +++ b/src/status_im/ui/screens/multiaccounts/key_storage/views.cljs @@ -137,7 +137,7 @@ :height 16}]]]) (defn keycard-upsell-banner [] - [react/touchable-highlight {:on-press #(.openURL ^js react/linking "https://keycard.tech/")} + [react/touchable-highlight {:on-press #(.openURL ^js react/linking "https://get-keycard.status.im/")} [react/view {:background-color (if (= :dark @colors/theme) "#2C5955" "#DDF8F4") :border-radius 16 :margin 16 diff --git a/src/status_im/ui/screens/multiaccounts/login/views.cljs b/src/status_im/ui/screens/multiaccounts/login/views.cljs index 0a226b11e6..874a79124c 100644 --- a/src/status_im/ui/screens/multiaccounts/login/views.cljs +++ b/src/status_im/ui/screens/multiaccounts/login/views.cljs @@ -14,7 +14,8 @@ [status-im.ui.components.icons.vector-icons :as icons] [status-im.ui.components.toolbar :as toolbar] [status-im.ui.components.topbar :as topbar] - [status-im.ui.components.colors :as colors]) + [status-im.ui.components.colors :as colors] + [status-im.ui.screens.multiaccounts.key-storage.views :as key-storage]) (:require-macros [status-im.utils.views :refer [defview letsubs]])) (defn login-multiaccount [^js password-text-input] @@ -43,7 +44,8 @@ sign-in-enabled? [:sign-in-enabled?] auth-method [:auth-method] view-id [:view-id] - supported-biometric-auth [:supported-biometric-auth]] + supported-biometric-auth [:supported-biometric-auth] + keycard? [:keycard-multiaccount?]] [react/keyboard-avoiding-view {:style ast/multiaccounts-view} [topbar/topbar {:border-bottom false :right-accessories [{:icon :more @@ -91,10 +93,12 @@ :style {:margin-left 3 :margin-right 10} :on-value-change #(re-frame/dispatch [:multiaccounts/save-password %])}] [react/text (i18n/label :t/save-password)]])]] - (when processing + (if processing [react/view styles/processing-view [react/activity-indicator {:animating true}] - [react/i18n-text {:style styles/processing :key :processing}]]) + [react/i18n-text {:style styles/processing :key :processing}]] + (when-not keycard? + [key-storage/keycard-upsell-banner])) [toolbar/toolbar {:size :large