use map of args for utils/show-popup fx
Signed-off-by: yenda <eric@status.im>
This commit is contained in:
parent
4045aa1888
commit
d225b7cc46
|
@ -11,9 +11,9 @@
|
||||||
(if (spec/valid? :global/public-key data)
|
(if (spec/valid? :global/public-key data)
|
||||||
(universal-links/handle-view-profile cofx data)
|
(universal-links/handle-view-profile cofx data)
|
||||||
(or (universal-links/handle-url cofx data)
|
(or (universal-links/handle-url cofx data)
|
||||||
{:utils/show-popup [(i18n/label :t/unable-to-read-this-code)
|
{:utils/show-popup {:title (i18n/label :t/unable-to-read-this-code)
|
||||||
(i18n/label :t/use-valid-qr-code {:data data})
|
:content (i18n/label :t/use-valid-qr-code {:data data})
|
||||||
#(re-frame/dispatch [:navigate-to-clean :home])]})))
|
:on-dismiss #(re-frame/dispatch [:navigate-to-clean :home])}})))
|
||||||
|
|
||||||
(fx/defn handle-qr-code
|
(fx/defn handle-qr-code
|
||||||
[cofx data]
|
[cofx data]
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
(re-frame/reg-fx
|
(re-frame/reg-fx
|
||||||
:utils/show-popup
|
:utils/show-popup
|
||||||
(fn [[title content on-dismiss]]
|
(fn [{:keys [title content on-dismiss]}]
|
||||||
(show-popup title content on-dismiss)))
|
(show-popup title content on-dismiss)))
|
||||||
|
|
||||||
(defn show-confirmation
|
(defn show-confirmation
|
||||||
|
|
Loading…
Reference in New Issue