refactored some styles and fixed text alignment fix ens name verication

This commit is contained in:
John Ngei 2024-05-22 11:11:36 +02:00 committed by GitHub
parent e5ab94f1b2
commit 8bd1c8de95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 15 deletions

View File

@ -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

View File

@ -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
@ -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]))