Disable possibility to changes amounts to send (#20639)
This commit is contained in:
parent
a049fd341e
commit
d16c1a3c85
|
@ -10,6 +10,7 @@
|
||||||
[status-im.contexts.wallet.send.routes.style :as style]
|
[status-im.contexts.wallet.send.routes.style :as style]
|
||||||
[status-im.contexts.wallet.send.utils :as send-utils]
|
[status-im.contexts.wallet.send.utils :as send-utils]
|
||||||
[status-im.contexts.wallet.sheets.network-preferences.view :as network-preferences]
|
[status-im.contexts.wallet.sheets.network-preferences.view :as network-preferences]
|
||||||
|
[status-im.feature-flags :as ff]
|
||||||
[utils.i18n :as i18n]
|
[utils.i18n :as i18n]
|
||||||
[utils.money :as money]
|
[utils.money :as money]
|
||||||
[utils.number :as number]
|
[utils.number :as number]
|
||||||
|
@ -387,7 +388,8 @@
|
||||||
chain-id-to-disable
|
chain-id-to-disable
|
||||||
disabled-from-chain-ids
|
disabled-from-chain-ids
|
||||||
token-available-networks-for-suggested-routes))
|
token-available-networks-for-suggested-routes))
|
||||||
:on-long-press (fn [chain-id amount-calculated-for-chain]
|
(when (ff/enabled? ::ff/wallet.custom-network-amounts)
|
||||||
|
:on-long-press) (fn [chain-id amount-calculated-for-chain]
|
||||||
(edit-amount
|
(edit-amount
|
||||||
{:chain-id chain-id
|
{:chain-id chain-id
|
||||||
:token-symbol token-symbol
|
:token-symbol token-symbol
|
||||||
|
|
|
@ -25,7 +25,8 @@
|
||||||
::wallet.long-press-watch-only-asset (enabled-in-env? :FLAG_LONG_PRESS_WATCH_ONLY_ASSET_ENABLED)
|
::wallet.long-press-watch-only-asset (enabled-in-env? :FLAG_LONG_PRESS_WATCH_ONLY_ASSET_ENABLED)
|
||||||
::wallet.saved-addresses (enabled-in-env? :WALLET_SAVED_ADDRESSES)
|
::wallet.saved-addresses (enabled-in-env? :WALLET_SAVED_ADDRESSES)
|
||||||
::wallet.swap (enabled-in-env? :FLAG_SWAP_ENABLED)
|
::wallet.swap (enabled-in-env? :FLAG_SWAP_ENABLED)
|
||||||
::wallet.wallet-connect (enabled-in-env? :FLAG_WALLET_CONNECT_ENABLED)})
|
::wallet.wallet-connect (enabled-in-env? :FLAG_WALLET_CONNECT_ENABLED)
|
||||||
|
::wallet.custom-network-amounts (enabled-in-env? :FLAG_WALLET_CUSTOM_NETWORK_AMOUNTS_ENABLED)})
|
||||||
|
|
||||||
(defonce ^:private feature-flags-config
|
(defonce ^:private feature-flags-config
|
||||||
(reagent/atom initial-flags))
|
(reagent/atom initial-flags))
|
||||||
|
|
Loading…
Reference in New Issue