[#6347] fix profile qr code

This commit is contained in:
Roman Volosovskyi 2018-10-17 12:18:07 +03:00
parent 22c8999eca
commit 382640d72c
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 8 additions and 6 deletions

View File

@ -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})
(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}])
: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)}]]))