[#9680] Show proper storage for keycard accounts

This commit is contained in:
Roman Volosovskyi 2020-03-19 13:47:33 +02:00
parent 9496bfa2a8
commit fadda87ac2
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 6 additions and 2 deletions

View File

@ -40,7 +40,8 @@
(defview account-settings []
(letsubs [{:keys [address color path type] :as account} [:multiaccount/current-account]
new-account (reagent/atom nil)]
new-account (reagent/atom nil)
keycard? [:keycard-multiaccount?]]
[react/keyboard-avoiding-view {:flex 1}
[topbar/topbar
(cond-> {:title :t/account-settings}
@ -90,7 +91,10 @@
{:copied-text path}
[react/text {:style {:margin-top 6 :font-family "monospace"}} path]]])
(when-not (= type :watch)
[property (i18n/label :t/storage) (i18n/label :t/this-device)])]
[property (i18n/label :t/storage)
(i18n/label (if keycard?
:t/keycard
:t/this-device))])]
(when (= type :watch)
[react/view
[react/view {:margin-bottom 8 :margin-top 28 :height 1 :background-color colors/gray-lighter}]