chore(wallet): feature flag incomplete activity feature
This commit is contained in:
parent
59f2eca75a
commit
e27acdad33
|
@ -10,6 +10,7 @@
|
||||||
[status-im.contexts.shell.jump-to.constants :as jump-to.constants]
|
[status-im.contexts.shell.jump-to.constants :as jump-to.constants]
|
||||||
[status-im.contexts.wallet.common.activity-tab.constants :as constants]
|
[status-im.contexts.wallet.common.activity-tab.constants :as constants]
|
||||||
[status-im.contexts.wallet.common.empty-tab.view :as empty-tab]
|
[status-im.contexts.wallet.common.empty-tab.view :as empty-tab]
|
||||||
|
[status-im.feature-flags :as ff]
|
||||||
[utils.datetime :as datetime]
|
[utils.datetime :as datetime]
|
||||||
[utils.ethereum.chain :as chain]
|
[utils.ethereum.chain :as chain]
|
||||||
[utils.i18n :as i18n]
|
[utils.i18n :as i18n]
|
||||||
|
@ -24,14 +25,14 @@
|
||||||
(let [chain-id (or (:chain-id token-in) (:chain-id token-out))
|
(let [chain-id (or (:chain-id token-in) (:chain-id token-out))
|
||||||
amount-in-units (native-module/hex-to-number
|
amount-in-units (native-module/hex-to-number
|
||||||
(utils.hex/normalize-hex amount-in))
|
(utils.hex/normalize-hex amount-in))
|
||||||
amount-in-value (money/with-precision
|
amount-in-value (str (money/with-precision
|
||||||
(money/wei->ether amount-in-units)
|
(money/wei->ether amount-in-units)
|
||||||
precision)
|
precision))
|
||||||
amount-out-units (native-module/hex-to-number
|
amount-out-units (native-module/hex-to-number
|
||||||
(utils.hex/normalize-hex amount-out))
|
(utils.hex/normalize-hex amount-out))
|
||||||
amount-out-value (money/with-precision
|
amount-out-value (str (money/with-precision
|
||||||
(money/wei->ether amount-out-units)
|
(money/wei->ether amount-out-units)
|
||||||
precision)
|
precision))
|
||||||
relative-date (datetime/timestamp->relative (* timestamp 1000))
|
relative-date (datetime/timestamp->relative (* timestamp 1000))
|
||||||
receiving-activity? (= activity-type constants/wallet-activity-type-receive)]
|
receiving-activity? (= activity-type constants/wallet-activity-type-receive)]
|
||||||
[quo/wallet-activity
|
[quo/wallet-activity
|
||||||
|
@ -61,7 +62,7 @@
|
||||||
[]
|
[]
|
||||||
(let [theme (quo.theme/use-theme)
|
(let [theme (quo.theme/use-theme)
|
||||||
activity-list (rf/sub [:wallet/activities-for-current-viewing-account])]
|
activity-list (rf/sub [:wallet/activities-for-current-viewing-account])]
|
||||||
(if (empty? activity-list)
|
(if (or (empty? activity-list) (not (ff/enabled? ::wallet.activities)))
|
||||||
[empty-tab/view
|
[empty-tab/view
|
||||||
{:title (i18n/label :t/no-activity)
|
{:title (i18n/label :t/no-activity)
|
||||||
:description (i18n/label :t/empty-tab-description)
|
:description (i18n/label :t/empty-tab-description)
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
::settings.network-settings (enabled-in-env?
|
::settings.network-settings (enabled-in-env?
|
||||||
:FLAG_WALLET_SETTINGS_NETWORK_SETTINGS_ENABLED)
|
:FLAG_WALLET_SETTINGS_NETWORK_SETTINGS_ENABLED)
|
||||||
::shell.jump-to (enabled-in-env? :ENABLE_JUMP_TO)
|
::shell.jump-to (enabled-in-env? :ENABLE_JUMP_TO)
|
||||||
|
::wallet.activities (enabled-in-env? :FLAG_WALLET_ACTIVITY_ENABLED)
|
||||||
::wallet.assets-modal-hide (enabled-in-env? :FLAG_ASSETS_MODAL_HIDE)
|
::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.assets-modal-manage-tokens (enabled-in-env? :FLAG_ASSETS_MODAL_MANAGE_TOKENS)
|
||||||
::wallet.bridge-token (enabled-in-env? :FLAG_BRIDGE_TOKEN_ENABLED)
|
::wallet.bridge-token (enabled-in-env? :FLAG_BRIDGE_TOKEN_ENABLED)
|
||||||
|
|
Loading…
Reference in New Issue