[#5211] show welcome screen after account creation
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
parent
38f753d00e
commit
40ec6ec47e
|
@ -112,16 +112,10 @@
|
|||
:account-set-name
|
||||
(fn [{{:accounts/keys [create] :as db} :db :as cofx} _]
|
||||
(handlers-macro/merge-fx cofx
|
||||
{:db db
|
||||
:dispatch [:navigate-to-clean :home]}
|
||||
(accounts.utils/account-update {:name (:name create)}))))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
:account-finalized
|
||||
(fn [{db :db} [_ show-welcome?]]
|
||||
{:db (assoc db :accounts/create {:show-welcome? show-welcome?})
|
||||
{:db (assoc db :accounts/create {:show-welcome? true})
|
||||
:dispatch-n [[:navigate-to-clean :home]
|
||||
[:request-notifications]]}))
|
||||
[:request-notifications]]}
|
||||
(accounts.utils/account-update {:name (:name create)}))))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
:account-set-input-text
|
||||
|
|
|
@ -60,7 +60,8 @@
|
|||
:account-recovered-navigate
|
||||
(fn [{:keys [db]}]
|
||||
{:db (assoc-in db [:accounts/recover :processing] false)
|
||||
:dispatch [:navigate-to-clean :home]}))
|
||||
:dispatch-n [[:navigate-to-clean :home]
|
||||
[:request-notifications]]}))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
:recover-account
|
||||
|
|
|
@ -114,8 +114,6 @@
|
|||
(spec/def :navigation.screen-params.dapp-description/dapp :new/open-dapp)
|
||||
(spec/def :navigation.screen-params/dapp-description map?)
|
||||
|
||||
(spec/def :navigation.screen-params/usage-data vector?)
|
||||
|
||||
(spec/def :navigation.screen-params/collectibles-list map?)
|
||||
|
||||
(spec/def :navigation/screen-params (spec/nilable (allowed-keys :opt-un [:navigation.screen-params/network-details
|
||||
|
@ -125,7 +123,6 @@
|
|||
:navigation.screen-params/group-contacts
|
||||
:navigation.screen-params/edit-contact-group
|
||||
:navigation.screen-params/dapp-description
|
||||
:navigation.screen-params/usage-data
|
||||
:navigation.screen-params/collectibles-list])))
|
||||
|
||||
(spec/def :desktop/desktop (spec/nilable any?))
|
||||
|
|
|
@ -377,8 +377,7 @@
|
|||
[:update-wallet]
|
||||
[:update-transactions]
|
||||
[:get-fcm-token]
|
||||
[:update-sign-in-time]
|
||||
[:show-mainnet-is-default-alert]]
|
||||
[:update-sign-in-time]]
|
||||
(seq events-after) (into events-after))}))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
|
|
Loading…
Reference in New Issue