Skip to content

Commit 25bfb9e

Browse files
authored
Merge branch 'develop' into share-community-qr-17993
2 parents 0d13e66 + 834c0a3 commit 25bfb9e

File tree

5 files changed

+24
-41
lines changed

5 files changed

+24
-41
lines changed

src/quo/components/dividers/strength_divider/style.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
(def container
44
{:height 40
55
:flex-direction :row
6-
:padding-horizontal 20
6+
:padding-horizontal 16
77
:align-items :center})
88

99
(defn text

src/quo/components/dividers/strength_divider/view.cljs

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
(defn circular-progress
3232
[{:keys [color percentage]}]
33-
(let [strength-indicator-radius 6.5
33+
(let [strength-indicator-radius 7.5
3434
strength-indicator-circumference (* 2 Math/PI strength-indicator-radius)]
3535
[svg/svg
3636
{:view-box "0 0 16 16"
@@ -63,7 +63,10 @@
6363
:alert [icon/icon :i/alert
6464
{:color color
6565
:size 16}]
66-
[circular-progress {:color color :percentage percentage}])))
66+
[rn/view
67+
{:padding-left 4
68+
:padding-right 2}
69+
[circular-progress {:color color :percentage percentage}]])))
6770

6871
(defn view
6972
"Options

src/status_im/contexts/onboarding/create_password/style.cljs

+2-24
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,8 @@
88
(def heading-subtitle {:color colors/white})
99
(def heading-title (assoc heading-subtitle :margin-bottom 8))
1010

11-
(def label-container
12-
{:margin-top 8
13-
:flex-direction :row
14-
:align-items :center
15-
:height 16})
16-
17-
(def label-icon
18-
{:width 16
19-
:height 18
20-
:margin-right 4})
21-
22-
(defn label-icon-color
23-
[status]
24-
(get {:neutral colors/neutral-40
25-
:success colors/success-60
26-
:danger colors/danger-60}
27-
status))
28-
29-
(defn label-color
30-
[status]
31-
(let [colors {:neutral colors/white-opa-70
32-
:success colors/success-60
33-
:danger colors/danger-60}]
34-
{:color (get colors status)}))
11+
(def info-message
12+
{:margin-top 8})
3513

3614
(def space-between-inputs {:height 16})
3715

src/status_im/contexts/onboarding/create_password/view.cljs

+14-12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
(:require
33
[oops.core :refer [ocall]]
44
[quo.core :as quo]
5+
[quo.foundations.colors :as colors]
56
[react-native.core :as rn]
67
[react-native.safe-area :as safe-area]
78
[reagent.core :as reagent]
@@ -33,24 +34,25 @@
3334
(dissoc :hint)
3435
(assoc :type :password
3536
:blur? true))]
36-
[rn/view {:style style/label-container}
37+
[rn/view {:style style/info-message}
3738
(when shown
38-
[:<>
39-
[quo/icon (if (= status :success) :i/check-circle :i/info)
40-
{:container-style style/label-icon
41-
:color (style/label-icon-color status)
42-
:size 16}]
43-
[quo/text
44-
{:style (style/label-color status)
45-
:size :paragraph-2}
46-
text]])]])
39+
[quo/info-message
40+
{:type status
41+
:size :default
42+
:icon (if (= status :success) :i/positive-state :i/info)
43+
:text-color (when (= status :default)
44+
colors/white-70-blur)
45+
:icon-color (when (= status :default)
46+
colors/white-70-blur)
47+
:style {}}
48+
text])]])
4749

4850
(defn password-inputs
4951
[{:keys [passwords-match? on-change-password on-change-repeat-password on-input-focus
5052
password-long-enough? empty-password? show-password-validation?
5153
on-blur-repeat-password]}]
52-
(let [hint-1-status (if password-long-enough? :success :neutral)
53-
hint-2-status (if passwords-match? :success :danger)
54+
(let [hint-1-status (if password-long-enough? :success :default)
55+
hint-2-status (if passwords-match? :success :error)
5456
hint-2-text (if passwords-match?
5557
(i18n/label :t/password-creation-match)
5658
(i18n/label :t/password-creation-dont-match))

translations/en.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1138,9 +1138,9 @@
11381138
"password-creation-hint": "Minimum 10 characters",
11391139
"password-creation-placeholder-1": "Type password",
11401140
"password-creation-placeholder-2": "Repeat password",
1141-
"password-creation-tips-title": "Tips to improve password",
1141+
"password-creation-tips-title": "Tips to improve",
11421142
"password-creation-tips-1": "Lower case",
1143-
"password-creation-tips-2": "Upper-case",
1143+
"password-creation-tips-2": "Upper case",
11441144
"password-creation-tips-3": "Numbers",
11451145
"password-creation-tips-4": "Symbols",
11461146
"password-creation-disclaimer": "I understand my password can't be recovered",

0 commit comments

Comments
 (0)