[#6347] fix profile qr code
This commit is contained in:
parent
22c8999eca
commit
382640d72c
|
@ -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)}]]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue