Center align to "+ Add contact" touchable

Fixes #9696

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
Gheorghe Pinzaru 2020-01-06 10:02:05 +03:00 committed by yenda
parent 1caec28d03
commit 1fd59bb61e
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
2 changed files with 6 additions and 12 deletions

View File

@ -159,18 +159,13 @@
(def add-contact
{:flex-direction :row
:align-items :center
:height 36
:border-bottom-width 1
:justify-content :center
:padding-vertical 6
:border-bottom-width 1
:border-color colors/gray-lighter})
(def add-contact-center
{:flex-direction :row})
(def add-contact-text
{:text-align :center
:text-align-vertical :center
:padding-left 4
{:margin-left 4
:color colors/blue})
(def add-contact-close-icon

View File

@ -35,9 +35,8 @@
[react/touchable-highlight
{:on-press
#(re-frame/dispatch [:contact.ui/add-to-contact-pressed public-key])
:accessibility-label :add-to-contacts-button
:style style/add-contact}
[react/view style/add-contact-center
:accessibility-label :add-to-contacts-button}
[react/view {:style style/add-contact}
[vector-icons/icon :main-icons/add
{:color colors/blue}]
[react/i18n-text {:style style/add-contact-text :key :add-to-contacts}]]])