|
14 | 14 | [_ opts]
|
15 | 15 | {:request-permissions-fx
|
16 | 16 | {:permissions [:camera]
|
17 |
| - :on-allowed #(re-frame/dispatch [:open-modal :qr-scanner opts]) |
| 17 | + :on-allowed #(re-frame/dispatch [:open-modal :screen/qr-scanner opts]) |
18 | 18 | :on-denied (fn []
|
19 | 19 | (utils/set-timeout
|
20 | 20 | #(utils/show-popup (i18n/label :t/error)
|
|
62 | 62 | (cond
|
63 | 63 | (and public-key own)
|
64 | 64 | (rf/merge cofx
|
65 |
| - (navigation/pop-to-root :shell-stack) |
66 |
| - (navigation/navigate-to :my-profile nil)) |
| 65 | + (navigation/pop-to-root :screen/shell-stack) |
| 66 | + (navigation/navigate-to :screen/my-profile nil)) |
67 | 67 |
|
68 | 68 | (and public-key (not own))
|
69 | 69 | (rf/merge cofx
|
|
73 | 73 | :else
|
74 | 74 | {:effects.utils/show-popup {:title (i18n/label :t/unable-to-read-this-code)
|
75 | 75 | :content (i18n/label :t/ens-name-not-found)
|
76 |
| - :on-dismiss #(re-frame/dispatch [:pop-to-root :shell-stack])}}))) |
| 76 | + :on-dismiss #(re-frame/dispatch [:pop-to-root |
| 77 | + :screen/shell-stack])}}))) |
77 | 78 |
|
78 | 79 | (rf/defn handle-eip681
|
79 | 80 | [cofx data]
|
80 | 81 | (rf/merge cofx
|
81 |
| - {:dispatch-n [[:shell/change-tab :wallet-stack] |
| 82 | + {:dispatch-n [[:shell/change-tab :screen/wallet-stack] |
82 | 83 | [:wallet-legacy/parse-eip681-uri-and-resolve-ens data]]}
|
83 |
| - (navigation/pop-to-root :shell-stack))) |
| 84 | + (navigation/pop-to-root :screen/shell-stack))) |
84 | 85 |
|
85 | 86 | (rf/defn handle-local-pairing
|
86 | 87 | {:events [::handle-local-pairing-uri]}
|
|
103 | 104 | :event ::match-scanned-value})
|
104 | 105 | {:dispatch [:navigate-back]
|
105 | 106 | :effects.utils/show-popup {:title (i18n/label :t/unable-to-read-this-code)
|
106 |
| - :on-dismiss #(re-frame/dispatch [:pop-to-root :shell-stack])}}))) |
| 107 | + :on-dismiss #(re-frame/dispatch [:pop-to-root |
| 108 | + :screen/shell-stack])}}))) |
107 | 109 |
|
108 | 110 | (rf/defn on-scan
|
109 | 111 | {:events [::on-scan-success]}
|
|
0 commit comments