File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 29
29
(defn validation-name
30
30
[s]
31
31
(cond
32
- (or ( = s nil ) ( = s " " )) nil
32
+ (string/blank? s) nil
33
33
(string/ends-with? s " -eth" ) (i18n/label :t/ending-not-allowed {:ending " -eth" })
34
34
(string/ends-with? s " _eth" ) (i18n/label :t/ending-not-allowed {:ending " _eth" })
35
35
(string/ends-with? s " .eth" ) (i18n/label :t/ending-not-allowed {:ending " .eth" })
45
45
(defn validation-bio
46
46
[s]
47
47
(cond
48
- (or ( = s nil ) ( = s " " )) nil
48
+ (string/blank? s) nil
49
49
(has-emojis? s) (i18n/label :t/are-not-allowed {:check (i18n/label :t/emojis )})
50
50
(has-special-characters? s) (i18n/label :t/are-not-allowed
51
51
{:check (i18n/label :t/special-characters )})
54
54
(defn validation-nickname
55
55
[s]
56
56
(cond
57
- (or ( = s nil ) ( = s " " )) nil
57
+ (string/blank? s) nil
58
58
(has-emojis? s) (i18n/label :t/are-not-allowed {:check (i18n/label :t/emojis )})
59
59
(has-special-characters? s) (i18n/label :t/are-not-allowed
60
60
{:check (i18n/label :t/special-characters )})
Original file line number Diff line number Diff line change 15
15
[]
16
16
(let [{:keys [public-key primary-name nickname customization-color]
17
17
:as profile} (rf/sub [:contacts/current-contact ])
18
- ; ; TODO: remove :blue when #18733 merged.
18
+ ; ; TODO(@mohsen) : remove :blue, https://github.com/status-im/status-mobile/issues/18733
19
19
customization-color (or customization-color :blue )
20
20
full-name (profile.utils/displayed-name profile)
21
21
profile-picture (profile.utils/photo profile)
67
67
[info-message/info-message
68
68
{:icon :i/info
69
69
:size :default
70
- :type (if ( not (string/blank? error-msg) ) :error :default )}
71
- (if ( not (string/blank? error-msg) )
70
+ :type (if- not (string/blank? error-msg) :error :default )}
71
+ (if- not (string/blank? error-msg)
72
72
error-msg
73
73
(i18n/label :t/nickname-visible-to-you ))]]
74
74
[quo/bottom-actions
Original file line number Diff line number Diff line change 21
21
{:navigate-back? true
22
22
:height 148
23
23
:on-scroll #(reanimated/set-shared-value scroll-y %)
24
- ; TODO remove colors/primary-50 when #18733 merged.
24
+ ; ; TODO(@mohsen): remove colors/primary-50, https://github.com/status-im/status-mobile/issues/18733
25
25
:cover-color (or customization-color colors/primary-50)
26
26
:background-color (colors/theme-colors colors/white colors/neutral-95 theme)
27
27
:page-nav-props {:right-side [{:icon-name :i/options
You can’t perform that action at this time.
0 commit comments