use map of args for utils/show-popup fx

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2018-09-27 11:47:16 +02:00
parent 4045aa1888
commit d225b7cc46
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
2 changed files with 4 additions and 4 deletions

View File

@ -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]

View File

@ -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