diff --git a/README.md b/README.md index bd5b086e7..4cd95372c 100644 --- a/README.md +++ b/README.md @@ -271,6 +271,7 @@ The file `common.ts` with type [`AppConfig`](src/config/types.ts) contains impor - `priceChart`: use `tradingView` chart or `native` chart for token pair price history. You need to provide a backend with price history endpoint to support `native` view. - `useGradientBranding`: Flag to enable gradient styles for buttons. - `tradeCount`: Display the amount of trades in the explorer page. + - `currencyMenu`: Display the currency menu to switch between currencies. #### Gas token different than native token diff --git a/src/components/core/menu/mainMenu/MainMenuRightBurger/useBurgerMenuItems.tsx b/src/components/core/menu/mainMenu/MainMenuRightBurger/useBurgerMenuItems.tsx index 5fd8a3492..8a2b0cfc8 100644 --- a/src/components/core/menu/mainMenu/MainMenuRightBurger/useBurgerMenuItems.tsx +++ b/src/components/core/menu/mainMenu/MainMenuRightBurger/useBurgerMenuItems.tsx @@ -137,10 +137,12 @@ export const useBurgerMenuItems = () => { ], [availableCurrencies, selectedFiatCurrency, setSelectedFiatCurrency] ); - menuMap.set('currency', { - items: currencyItems, - title: 'Currency', - }); + if (config.ui.currencyMenu) { + menuMap.set('currency', { + items: currencyItems, + title: 'Currency', + }); + } const resourcesItems: MenuItemType[] = [ {