fix: wallet send navigation flow (#20008)
fix: wallet send navigation flow (#20008)
This commit is contained in:
parent
3e33ccb9ca
commit
219ae0ccbe
|
@ -19,9 +19,7 @@
|
|||
{:screen-id :screen/wallet.select-asset
|
||||
:skip-step? (fn [db] (or (token-selected? db) (collectible-selected? db)))}
|
||||
{:screen-id :screen/wallet.send-input-amount
|
||||
:skip-step? (fn [db]
|
||||
(or (not (token-selected? db))
|
||||
(some? (get-in db [:wallet :ui :send :amount]))))}
|
||||
:skip-step? (fn [db] (= (get-in db [:wallet :ui :send :tx-type]) :collectible))}
|
||||
{:screen-id :screen/wallet.select-collectible-amount
|
||||
:skip-step? (fn [db]
|
||||
(or (not (collectible-selected? db))
|
||||
|
|
|
@ -67,6 +67,9 @@
|
|||
(rf/dispatch [:wallet/clean-selected-token])
|
||||
(rf/dispatch [:wallet/clean-selected-collectible])
|
||||
(rf/dispatch [:navigate-back]))]
|
||||
(rn/use-unmount (fn []
|
||||
(rf/dispatch [:wallet/clean-selected-token])
|
||||
(rf/dispatch [:wallet/clean-selected-collectible])))
|
||||
(fn []
|
||||
[rn/safe-area-view {:style style/container}
|
||||
[account-switcher/view
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
(ns status-im.contexts.wallet.wallet-connect.utils
|
||||
;; NOTE: Not sorting namespaces since @walletconnect/react-native-compat should be the first
|
||||
#_{:clj-kondo/ignore [:unsorted-required-namespaces]}
|
||||
(:require ["@walletconnect/react-native-compat"]
|
||||
["@walletconnect/core" :refer [Core]]
|
||||
["@walletconnect/web3wallet" :refer [Web3Wallet]]
|
||||
(:require ["@walletconnect/core" :refer [Core]]
|
||||
["@walletconnect/react-native-compat"]
|
||||
["@walletconnect/utils" :refer [buildApprovedNamespaces]]
|
||||
["@walletconnect/web3wallet" :refer [Web3Wallet]]
|
||||
[status-im.config :as config]
|
||||
[utils.i18n :as i18n]))
|
||||
|
||||
|
|
Loading…
Reference in New Issue