Skip to content

Commit

Permalink
temporary disable keycard options
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryn committed Aug 8, 2019
1 parent 9fa8db9 commit fbdd308
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/status_im/ui/screens/intro/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
[status-im.ui.components.toolbar.view :as toolbar]
[status-im.i18n :as i18n]
[status-im.ui.components.status-bar.view :as status-bar]
[status-im.constants :as constants]))
[status-im.constants :as constants]
[status-im.utils.config :as config]))

(defn dots-selector [{:keys [on-press n selected color]}]
[react/view {:style (styles/dot-selector n)}
Expand Down Expand Up @@ -137,7 +138,7 @@
[react/text {:style (assoc styles/wizard-text :text-align :left :margin-left 16)}
(i18n/label type)]]
[react/touchable-highlight
{:on-press #(re-frame/dispatch [:intro-wizard/on-key-storage-selected type])}
{:on-press #(re-frame/dispatch [:intro-wizard/on-key-storage-selected (if config/hardwallet-enabled? type :default)])}
[react/view (assoc (styles/list-item selected?)
:align-items :flex-start
:padding-top 20
Expand Down
6 changes: 4 additions & 2 deletions src/status_im/ui/screens/multiaccounts/recover/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@
:on-press #(re-frame/dispatch [:recover.ui/enter-phrase-pressed])}]
[action-button/action-button
{:label (i18n/label :t/recover-with-keycard)
:label-style (if config/hardwallet-enabled? {} {:color colors/gray})
:accessibility-label :recover-with-keycard-button
:image :keycard-logo-blue
:image-opts {:style {:width 24 :height 24}}
:on-press #(re-frame/dispatch [:recover.ui/recover-with-keycard-pressed])}]]])
:on-press #(when config/hardwallet-enabled?
(re-frame/dispatch [:recover.ui/recover-with-keycard-pressed]))}]]])

(def bottom-sheet
{:content bottom-sheet-view
Expand Down Expand Up @@ -298,7 +300,7 @@
[react/text {:style {:color colors/gray
:text-align :center}}
(i18n/label :t/intro-wizard-text3)]]]
[intro.views/select-key-storage {:selected-storage-type selected-storage-type} view-height]
[intro.views/select-key-storage {:selected-storage-type (if config/hardwallet-enabled? selected-storage-type :default)} view-height]
[react/view {:flex-direction :row
:justify-content :space-between
:align-items :center
Expand Down

0 comments on commit fbdd308

Please sign in to comment.