parent
279993b658
commit
dbc8df251a
|
@ -28,3 +28,9 @@
|
||||||
{:flex-direction :row
|
{:flex-direction :row
|
||||||
:align-items :center
|
:align-items :center
|
||||||
:justify-content :space-between})
|
:justify-content :space-between})
|
||||||
|
|
||||||
|
(defn subtitle
|
||||||
|
[blur? theme]
|
||||||
|
{:color (if blur?
|
||||||
|
colors/white-opa-40
|
||||||
|
(colors/theme-colors colors/neutral-50 colors/neutral-40 theme))})
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
[quo.foundations.colors :as colors]
|
[quo.foundations.colors :as colors]
|
||||||
[quo.theme :as quo.theme]
|
[quo.theme :as quo.theme]
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
|
[react-native.platform :as platform]
|
||||||
[reagent.core :as reagent]
|
[reagent.core :as reagent]
|
||||||
[utils.i18n :as i18n]))
|
[utils.i18n :as i18n]))
|
||||||
|
|
||||||
|
@ -19,11 +20,6 @@
|
||||||
(let [first-name (first (string/split full-name #" "))]
|
(let [first-name (first (string/split full-name #" "))]
|
||||||
(i18n/label :t/keypair-title {:name first-name})))
|
(i18n/label :t/keypair-title {:name first-name})))
|
||||||
|
|
||||||
(defn details-string
|
|
||||||
[address stored]
|
|
||||||
(str (when address (str address " ∙ "))
|
|
||||||
(if (= stored :on-device) (i18n/label :t/on-device) (i18n/label :t/on-keycard))))
|
|
||||||
|
|
||||||
(defn avatar
|
(defn avatar
|
||||||
[{{:keys [full-name]} :details
|
[{{:keys [full-name]} :details
|
||||||
avatar-type :type
|
avatar-type :type
|
||||||
|
@ -68,14 +64,20 @@
|
||||||
(let [{:keys [address]} details]
|
(let [{:keys [address]} details]
|
||||||
[rn/view
|
[rn/view
|
||||||
{:style {:flex-direction :row
|
{:style {:flex-direction :row
|
||||||
:align-items :center}}
|
:align-items :center}
|
||||||
|
:accessibility-label :details}
|
||||||
[text/text
|
[text/text
|
||||||
{:size :paragraph-2
|
{:size :paragraph-2
|
||||||
:accessibility-label :details
|
:style (style/subtitle blur? theme)}
|
||||||
:style {:color (if blur?
|
address]
|
||||||
colors/white-opa-40
|
[text/text
|
||||||
(colors/theme-colors colors/neutral-50 colors/neutral-40 theme))}}
|
{:size :paragraph-2
|
||||||
(details-string address stored)]
|
:style (merge (style/subtitle blur? theme) {:bottom (if platform/ios? 2 -2)})}
|
||||||
|
" ∙ "]
|
||||||
|
[text/text
|
||||||
|
{:size :paragraph-2
|
||||||
|
:style (style/subtitle blur? theme)}
|
||||||
|
(if (= stored :on-device) (i18n/label :t/on-device) (i18n/label :t/on-keycard))]
|
||||||
(when (= stored :on-keycard)
|
(when (= stored :on-keycard)
|
||||||
[rn/view {:style {:margin-left 4}}
|
[rn/view {:style {:margin-left 4}}
|
||||||
[icon/icon :i/keycard-card
|
[icon/icon :i/keycard-card
|
||||||
|
|
|
@ -277,7 +277,7 @@
|
||||||
:component wallet-collectible/view}
|
:component wallet-collectible/view}
|
||||||
|
|
||||||
{:name :wallet-select-keypair
|
{:name :wallet-select-keypair
|
||||||
:options {:insets {:top? true}}
|
:options {:insets {:top? true :bottom? true}}
|
||||||
:component wallet-select-keypair/view}
|
:component wallet-select-keypair/view}
|
||||||
|
|
||||||
{:name :wallet-create-account
|
{:name :wallet-create-account
|
||||||
|
|
Loading…
Reference in New Issue