From 3d1a1c5be9d24e91d8b14dcbce86d25e323b5bbc Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Tue, 31 Mar 2020 15:11:54 +0200 Subject: [PATCH] [#10077] Can't accept agreement on ENS registration when app translated into French Signed-off-by: Andrey Shovkoplyas --- src/status_im/ui/screens/ens/views.cljs | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/status_im/ui/screens/ens/views.cljs b/src/status_im/ui/screens/ens/views.cljs index 4bf4b6f6a0..97ddd6d062 100644 --- a/src/status_im/ui/screens/ens/views.cljs +++ b/src/status_im/ui/screens/ens/views.cljs @@ -258,23 +258,22 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defn- agreement [checked contract] - [react/view {:flex-direction :row - :margin-left 26 ;; 10 for checkbox + 16 - :margin-right 16 - :margin-top 14 - :align-items :flex-start + [react/view {:flex-direction :row + :margin-left 26 ;; 10 for checkbox + 16 + :margin-right 16 + :margin-top 14 + :align-items :flex-start :justify-content :center} [checkbox/checkbox {:checked? @checked :style {:padding 0} :on-value-change #(reset! checked %)}] - [react/view {:style {:padding-left 10}} - [react/view {:style {:flex-direction :row}} - [react/text - (i18n/label :t/ens-agree-to)] - [link {:on-press #(re-frame/dispatch [:navigate-to :ens-terms {:contract contract}])} - (i18n/label :t/ens-terms-registration)]] - [react/text - (i18n/label :t/ens-understand)]]]) + [react/nested-text {:style {:margin-left 10}} + (i18n/label :t/ens-agree-to) + [{:style {:color colors/blue} + :on-press #(re-frame/dispatch [:navigate-to :ens-terms {:contract contract}])} + (i18n/label :t/ens-terms-registration)] + "\n" + (i18n/label :t/ens-understand)]]) (defn- registration-bottom-bar [checked? amount-label]