added transaction sent modal
This commit is contained in:
parent
aeee3a6583
commit
780efc3ac1
|
@ -40,7 +40,7 @@
|
|||
[status-im.ui.screens.wallet.request.views :refer [request-transaction]]
|
||||
[status-im.ui.screens.wallet.wallet-list.views :refer [wallet-list-screen]]
|
||||
[status-im.ui.screens.wallet.transactions.views :as wallet-transactions]
|
||||
[status-im.ui.screens.wallet.send.transaction-sent.views :refer [transaction-sent]]
|
||||
[status-im.ui.screens.wallet.send.transaction-sent.views :refer [transaction-sent transaction-sent-modal]]
|
||||
|
||||
[status-im.components.status-bar :as status-bar]
|
||||
|
||||
|
@ -123,5 +123,6 @@
|
|||
:contact-list-modal contact-list-modal
|
||||
:wallet-transactions-filter wallet-transactions/filter-history
|
||||
:wallet-send-transaction-modal send-transaction-modal
|
||||
:wallet-transaction-sent-modal transaction-sent-modal
|
||||
(throw (str "Unknown modal view: " modal-view)))]
|
||||
[component])]])]])))))
|
||||
|
|
|
@ -148,7 +148,7 @@
|
|||
(update-in [:wallet :send-transaction] merge clear-send-properties))}
|
||||
(if modal?
|
||||
{:dispatch-n [[:navigate-back]
|
||||
[:navigate-to :wallet-transaction-sent]]}
|
||||
[:navigate-to-modal :wallet-transaction-sent-modal]]}
|
||||
{:dispatch [:navigate-to :wallet-transaction-sent]}))))))
|
||||
|
||||
(defn on-transactions-modal-completed [raw-results]
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
[status-im.i18n :as i18n]
|
||||
[status-im.utils.platform :as platform]))
|
||||
|
||||
(defview transaction-sent []
|
||||
(defview transaction-sent [& [modal?]]
|
||||
(letsubs [close-transaction-screen-event [:wallet.sent/close-transaction-screen-event]]
|
||||
[react/view wallet.styles/wallet-modal-container
|
||||
[status-bar/status-bar {:type :transparent}]
|
||||
[status-bar/status-bar {:type (if modal? :modal-wallet :transparent)}]
|
||||
[react/view styles/transaction-sent-container
|
||||
[react/view styles/ok-icon-container
|
||||
[vi/icon :icons/ok {:color components.styles/color-blue4}]]
|
||||
|
@ -38,3 +38,6 @@
|
|||
:font (if platform/android? :medium :default)
|
||||
:uppercase? (get-in platform/platform-specific [:uppercase?])}
|
||||
(i18n/label :t/got-it)]]]]))
|
||||
|
||||
(defview transaction-sent-modal []
|
||||
[transaction-sent true])
|
||||
|
|
Loading…
Reference in New Issue