From 382640d72c6a708b147d1bb78f62b601a4364035 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 17 Oct 2018 12:18:07 +0300 Subject: [PATCH] [#6347] fix profile qr code --- src/status_im/ui/screens/profile/user/views.cljs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/status_im/ui/screens/profile/user/views.cljs b/src/status_im/ui/screens/profile/user/views.cljs index e4848fa432..222a8e30e3 100644 --- a/src/status_im/ui/screens/profile/user/views.cljs +++ b/src/status_im/ui/screens/profile/user/views.cljs @@ -73,11 +73,13 @@ [toolbar/content-title label]]) (defn qr-code-share-button [value] - [button/button-with-icon {:on-press #(list-selection/open-share {:message value}) - :label (i18n/label :t/share-link) - :icon :icons/share - :accessibility-label :share-my-contact-code-button - :style styles/share-link-button}]) + (let [link (universal-links/generate-link :user :external value)] + [button/button-with-icon + {:on-press #(list-selection/open-share {:message link}) + :label (i18n/label :t/share-link) + :icon :icons/share + :accessibility-label :share-my-contact-code-button + :style styles/share-link-button}])) (defview qr-viewer [] (letsubs [{:keys [value contact]} [:get :qr-modal]] @@ -87,7 +89,7 @@ [qr-code-viewer/qr-code-viewer {:style styles/qr-code :footer-button qr-code-share-button - :value (universal-links/generate-link :user :external value) + :value value :hint (i18n/label :t/qr-code-public-key-hint) :legend (str value)}]]))