[#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]]) [toolbar/content-title label]])
(defn qr-code-share-button [value] (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)]
:label (i18n/label :t/share-link) [button/button-with-icon
:icon :icons/share {:on-press #(list-selection/open-share {:message link})
:accessibility-label :share-my-contact-code-button :label (i18n/label :t/share-link)
:style styles/share-link-button}]) :icon :icons/share
:accessibility-label :share-my-contact-code-button
:style styles/share-link-button}]))
(defview qr-viewer [] (defview qr-viewer []
(letsubs [{:keys [value contact]} [:get :qr-modal]] (letsubs [{:keys [value contact]} [:get :qr-modal]]
@ -87,7 +89,7 @@
[qr-code-viewer/qr-code-viewer [qr-code-viewer/qr-code-viewer
{:style styles/qr-code {:style styles/qr-code
:footer-button qr-code-share-button :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) :hint (i18n/label :t/qr-code-public-key-hint)
:legend (str value)}]])) :legend (str value)}]]))