Move buy assets recurrent tab out of feature flag (#20319)
This commit is contained in:
parent
4942238cae
commit
255ba9a862
|
@ -3,7 +3,6 @@
|
|||
[quo.core :as quo]
|
||||
[react-native.core :as rn]
|
||||
[status-im.contexts.wallet.sheets.buy-token.style :as style]
|
||||
[status-im.feature-flags :as ff]
|
||||
[utils.i18n :as i18n]
|
||||
[utils.re-frame :as rf]))
|
||||
|
||||
|
@ -46,15 +45,14 @@
|
|||
(oops/oget % :nativeEvent :layout :height)))]
|
||||
[:<>
|
||||
[quo/drawer-top {:title (i18n/label :t/buy-assets)}]
|
||||
(when (ff/enabled? ::ff/wallet.buy-recurrent-assets)
|
||||
[quo/segmented-control
|
||||
{:size 32
|
||||
:container-style style/tabs
|
||||
:default-active initial-tab
|
||||
:on-change set-selected-tab
|
||||
:data tabs}])
|
||||
:data tabs}]
|
||||
[rn/flat-list
|
||||
{:data (if (and (ff/enabled? ::ff/wallet.buy-recurrent-assets) (= selected-tab :recurrent))
|
||||
{:data (if (= selected-tab :recurrent)
|
||||
(:recurrent crypto-on-ramps)
|
||||
(:one-time crypto-on-ramps))
|
||||
:on-layout on-layout
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
::wallet.assets-modal-hide (enabled-in-env? :FLAG_ASSETS_MODAL_HIDE)
|
||||
::wallet.assets-modal-manage-tokens (enabled-in-env? :FLAG_ASSETS_MODAL_MANAGE_TOKENS)
|
||||
::wallet.bridge-token (enabled-in-env? :FLAG_BRIDGE_TOKEN_ENABLED)
|
||||
::wallet.buy-recurrent-assets (enabled-in-env? :FLAG_BUY_RECURRENT_ASSETS)
|
||||
::wallet.contacts (enabled-in-env? :FLAG_CONTACTS_ENABLED)
|
||||
::wallet.edit-derivation-path (enabled-in-env? :FLAG_EDIT_DERIVATION_PATH)
|
||||
::wallet.graph (enabled-in-env? :FLAG_GRAPH_ENABLED)
|
||||
|
|
Loading…
Reference in New Issue