Skip to content

Commit

Permalink
refactored some styles and fixed text alignment fix ens name verication
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-mut committed May 22, 2024
1 parent e5ab94f commit 884f5e3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
19 changes: 6 additions & 13 deletions src/status_im/contexts/chat/home/add_new_contact/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,25 @@
[theme]
{:flex 1
:background-color (colors/theme-colors colors/white colors/neutral-95 theme)
:justify-content :space-between
:align-items :center
:margin-top 2
:padding-horizontal 20})

(def container-invalid
{:style {:flex-direction :row
:align-items :center
:margin-top 8}})
{:flex-direction :row
:margin-top 8})

(defn text-description
[theme]
{:size :paragraph-2
:weight :medium
:style {:margin-bottom 6
:color (colors/theme-colors colors/neutral-50 colors/neutral-40 theme)}})
{:margin-bottom 6
:color (colors/theme-colors colors/neutral-50 colors/neutral-40 theme)})

(def icon-invalid
{:size 16
:color colors/danger-50})

(def text-invalid
{:size :paragraph-2
:align :left
:style {:margin-left 4
:color colors/danger-50}})
{:margin-left 4
:color colors/danger-50})

(def input-and-scan-container
{:flex-direction :row
Expand Down
9 changes: 7 additions & 2 deletions src/status_im/contexts/chat/home/add_new_contact/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
theme (quo.theme/use-theme)]
(when primary-name
[rn/view style/found-user
[quo/text (style/text-description theme)
[quo/text
{:size :paragraph-2
:weight :medium
:style (style/text-description theme)}
(i18n/label :t/user-found)]
[rn/view (style/found-user-container theme)
[quo/user-avatar
Expand Down Expand Up @@ -105,7 +108,9 @@
[message]
[rn/view style/container-invalid
[quo/icon :i/alert style/icon-invalid]
[quo/text style/text-invalid
[quo/text
{:size :paragraph-2
:style style/text-invalid}
(i18n/label (or message :t/invalid-ens-or-key))]])

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

0 comments on commit 884f5e3

Please sign in to comment.