Skip to content

Commit

Permalink
[#19917] fix: resolve reviewer feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed May 13, 2024
1 parent 265b357 commit ece5532
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/status_im/common/validation/keypair.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@
utils.emojilib
[utils.i18n :as i18n]))

(defn keypair-too-short? [s] (< (count (string/trim (str s))) constants/keypair-name-min-length))
(defn keypair-too-long? [s] (> (count (string/trim (str s))) constants/keypair-name-max-length))
(defn keypair-too-short?
[s]
(< (-> s str string/trim count) constants/keypair-name-min-length))

(defn keypair-too-long?
[s]
(> (-> s str string/trim count) constants/keypair-name-max-length))

(defn validation-keypair-name
[s]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[utils.i18n :as i18n]
[utils.re-frame :as rf]))

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

(defn view
[]
Expand Down Expand Up @@ -43,7 +43,7 @@
[floating-button-page/view
{:header [quo/page-nav
{:icon-name :i/close
:on-press navigation-back
:on-press navigate-back
:accessibility-label :top-bar}]
:footer [quo/bottom-actions
{:actions :one-action
Expand Down

0 comments on commit ece5532

Please sign in to comment.