Skip to content

Commit dbc8df2

Browse files
authored
Wallet: Keypair follow up (#17953)
* Wallet: Keypair follow up
1 parent 279993b commit dbc8df2

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

src/quo/components/wallet/keypair/style.cljs

+6
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@
2828
{:flex-direction :row
2929
:align-items :center
3030
:justify-content :space-between})
31+
32+
(defn subtitle
33+
[blur? theme]
34+
{:color (if blur?
35+
colors/white-opa-40
36+
(colors/theme-colors colors/neutral-50 colors/neutral-40 theme))})

src/quo/components/wallet/keypair/view.cljs

+15-13
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[quo.foundations.colors :as colors]
1212
[quo.theme :as quo.theme]
1313
[react-native.core :as rn]
14+
[react-native.platform :as platform]
1415
[reagent.core :as reagent]
1516
[utils.i18n :as i18n]))
1617

@@ -19,11 +20,6 @@
1920
(let [first-name (first (string/split full-name #" "))]
2021
(i18n/label :t/keypair-title {:name first-name})))
2122

22-
(defn details-string
23-
[address stored]
24-
(str (when address (str address ""))
25-
(if (= stored :on-device) (i18n/label :t/on-device) (i18n/label :t/on-keycard))))
26-
2723
(defn avatar
2824
[{{:keys [full-name]} :details
2925
avatar-type :type
@@ -67,15 +63,21 @@
6763
[{:keys [details stored blur? theme]}]
6864
(let [{:keys [address]} details]
6965
[rn/view
70-
{:style {:flex-direction :row
71-
:align-items :center}}
66+
{:style {:flex-direction :row
67+
:align-items :center}
68+
:accessibility-label :details}
69+
[text/text
70+
{:size :paragraph-2
71+
:style (style/subtitle blur? theme)}
72+
address]
73+
[text/text
74+
{:size :paragraph-2
75+
:style (merge (style/subtitle blur? theme) {:bottom (if platform/ios? 2 -2)})}
76+
""]
7277
[text/text
73-
{:size :paragraph-2
74-
:accessibility-label :details
75-
:style {:color (if blur?
76-
colors/white-opa-40
77-
(colors/theme-colors colors/neutral-50 colors/neutral-40 theme))}}
78-
(details-string address stored)]
78+
{:size :paragraph-2
79+
:style (style/subtitle blur? theme)}
80+
(if (= stored :on-device) (i18n/label :t/on-device) (i18n/label :t/on-keycard))]
7981
(when (= stored :on-keycard)
8082
[rn/view {:style {:margin-left 4}}
8183
[icon/icon :i/keycard-card

src/status_im2/navigation/screens.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
:component wallet-collectible/view}
278278

279279
{:name :wallet-select-keypair
280-
:options {:insets {:top? true}}
280+
:options {:insets {:top? true :bottom? true}}
281281
:component wallet-select-keypair/view}
282282

283283
{:name :wallet-create-account

0 commit comments

Comments
 (0)