Skip to content

Commit 07d41db

Browse files
committed
lint
1 parent 206d6dc commit 07d41db

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/status_im/common/validation/general.cljs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(ns status-im.common.validation.general
22
(:require
3-
[status-im.constants :as constants]))
3+
[status-im.constants :as constants]
4+
[utils.emojilib :as emoji]))
45

56
(defn valid-public-key?
67
[s]
@@ -14,7 +15,7 @@
1415
(not-empty s)
1516
(boolean (re-matches constants/regx-compressed-key s))))
1617

17-
(defn has-emojis? [s] (boolean (re-find utils.emojilib/emoji-regex s)))
18+
(defn has-emojis? [s] (boolean (re-find emoji/emoji-regex s)))
1819

1920
(def no-special-chars-regex #"^[a-zA-Z0-9\-_ ]+$")
2021
(defn has-special-characters?

src/status_im/common/validation/profile_test.cljs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
(ns status-im.common.validation.profile-test
22
(:require
33
[cljs.test :refer-macros [deftest are]]
4+
[status-im.common.validation.general :as validator]
45
[status-im.common.validation.profile :as profile-validator]
56
[utils.i18n :as i18n]))
67

78
(deftest has-emojis-test
89
(are [arg expected]
9-
(expected (profile-validator/has-emojis? arg))
10+
(expected (validator/has-emojis? arg))
1011
"Hello 😊" true?
1112
"Hello" false?))
1213

@@ -18,7 +19,7 @@
1819

1920
(deftest has-special-characters-test
2021
(are [arg expected]
21-
(expected (profile-validator/has-special-characters? arg))
22+
(expected (validator/has-special-characters? arg))
2223
"@name" true?
2324
"name" false?))
2425

src/status_im/contexts/wallet/create_account/new_keypair/keypair_name/view.cljs

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
(defn navigate-back [] (rf/dispatch [:navigate-back]))
2020

21-
(defn view-internal
22-
[{:keys [theme]}]
21+
(defn view
22+
[]
2323
(let [[keypair-name set-keypair-name] (rn/use-state "")
2424
customization-color (rf/sub [:profile/customization-color])
2525
[error set-error] (rn/use-state false)
@@ -71,4 +71,3 @@
7171
:icon :i/info
7272
:container-style style/error-container}
7373
(get error-messages error)])]]))
74-
(def view (quo.theme/with-theme view-internal))

0 commit comments

Comments
 (0)