[fix 6034] remove "thanks for..." popup on desktop
Signed-off-by: yenda <eric@status.im>
This commit is contained in:
parent
f37276a648
commit
8638c562f9
|
@ -6,12 +6,14 @@
|
||||||
[status-im.ui.screens.wallet.settings.models :as wallet.settings.models]
|
[status-im.ui.screens.wallet.settings.models :as wallet.settings.models]
|
||||||
[status-im.utils.config :as config]
|
[status-im.utils.config :as config]
|
||||||
[status-im.utils.utils :as utils]
|
[status-im.utils.utils :as utils]
|
||||||
[status-im.utils.fx :as fx]))
|
[status-im.utils.fx :as fx]
|
||||||
|
[status-im.utils.platform :as platform]))
|
||||||
|
|
||||||
(fx/defn show-mainnet-is-default-alert [{:keys [db]}]
|
(fx/defn show-mainnet-is-default-alert [{:keys [db]}]
|
||||||
(let [enter-name-screen? (= :enter-name (get-in db [:accounts/create :step]))
|
(let [enter-name-screen? (= :enter-name (get-in db [:accounts/create :step]))
|
||||||
shown? (get-in db [:account/account :mainnet-warning-shown?])]
|
shown? (get-in db [:account/account :mainnet-warning-shown?])]
|
||||||
(when (and config/mainnet-warning-enabled?
|
(when (and platform/mobile?
|
||||||
|
config/mainnet-warning-enabled?
|
||||||
(not shown?)
|
(not shown?)
|
||||||
(not enter-name-screen?))
|
(not enter-name-screen?))
|
||||||
(utils/show-popup
|
(utils/show-popup
|
||||||
|
|
Loading…
Reference in New Issue