diff --git a/lib/hooks/useNavItems.tsx b/lib/hooks/useNavItems.tsx
index d0d98b2ce1..3fbf1c8d30 100644
--- a/lib/hooks/useNavItems.tsx
+++ b/lib/hooks/useNavItems.tsx
@@ -215,7 +215,7 @@ export default function useNavItems(): ReturnType {
icon: 'gear',
subItems: [
{
- text: 'Swap',
+ text: 'Get ONE',
nextRoute: { pathname: '/swap' as const },
isActive: pathname.startsWith('/swap'),
},
diff --git a/ui/shared/TextSeparator.tsx b/ui/shared/TextSeparator.tsx
index ed929fafdb..b13daaa7b7 100644
--- a/ui/shared/TextSeparator.tsx
+++ b/ui/shared/TextSeparator.tsx
@@ -3,7 +3,7 @@ import type { StyleProps } from '@chakra-ui/styled-system';
import React from 'react';
const TextSeparator = ({ id, ...props }: StyleProps & { id?: string }) => {
- return |;
+ return |;
};
export default React.memo(TextSeparator);
diff --git a/ui/snippets/topBar/SwapButton.tsx b/ui/snippets/topBar/SwapButton.tsx
index b446455f9a..8f88391a69 100644
--- a/ui/snippets/topBar/SwapButton.tsx
+++ b/ui/snippets/topBar/SwapButton.tsx
@@ -1,47 +1,23 @@
import { Button, Box } from '@chakra-ui/react';
-import { useRouter } from 'next/router';
import React from 'react';
-import { route } from 'nextjs-routes';
-
-import config from 'configs/app';
-import getPageType from 'lib/mixpanel/getPageType';
-import * as mixpanel from 'lib/mixpanel/index';
import IconSvg from 'ui/shared/IconSvg';
-const feature = config.features.swapButton;
-
const SwapButton = () => {
- const router = useRouter();
- const source = getPageType(router.pathname);
-
- const handleClick = React.useCallback(() => {
- mixpanel.logEvent(mixpanel.EventTypes.BUTTON_CLICK, { Content: 'Swap button', Source: source });
- }, [ source ]);
-
- if (!feature.isEnabled) {
- return null;
- }
-
- const href = 'url' in feature ?
- feature.url :
- route({ pathname: '/apps/[id]', query: { id: feature.dappId, action: 'connect' } });
-
return (
);
diff --git a/ui/snippets/topBar/TopBar.tsx b/ui/snippets/topBar/TopBar.tsx
index 3a00b48ec3..d75b3bcf8d 100644
--- a/ui/snippets/topBar/TopBar.tsx
+++ b/ui/snippets/topBar/TopBar.tsx
@@ -15,8 +15,6 @@ import ColorModeSwitch from './ColorModeSwitch';
import SwapButton from './SwapButton';
import TopBarStats from './TopBarStats';
-const feature = config.features.swapButton;
-
const AddressSwitcher = () => {
const { setFormat, isEthFormat } = useAddressFormatContext();
@@ -26,15 +24,14 @@ const AddressSwitcher = () => {
return (
<>
-
- ONE / ETH address
+
+ ONE/ETH
>
);
@@ -71,24 +68,24 @@ const TopBar = () => {
>
-
-
- { feature.isEnabled && (
- <>
-
-
- >
- ) }
+ <>
+
+
+ >
+ <>
+
+
+ >
diff --git a/ui/snippets/topBar/TopBarStats.tsx b/ui/snippets/topBar/TopBarStats.tsx
index 7bc180f0c6..a2e6e3361d 100644
--- a/ui/snippets/topBar/TopBarStats.tsx
+++ b/ui/snippets/topBar/TopBarStats.tsx
@@ -51,11 +51,13 @@ const TopBarStats = () => {
{ data?.coin_price && (
- { config.chain.governanceToken.symbol || config.chain.currency.symbol }
- ${ Number(data.coin_price).toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 6 }) }
+
+ { config.chain.governanceToken.symbol || config.chain.currency.symbol }
+
+ ${ Number(data.coin_price).toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 4 }) }
{ data.coin_price_change_percentage && (
-
+
= 0 ? 'green.500' : 'red.500' }>
{ Number(data.coin_price_change_percentage).toFixed(2) }%
@@ -63,7 +65,7 @@ const TopBarStats = () => {
) }
) }
- { data?.coin_price && config.features.gasTracker.isEnabled && }
+ { data?.coin_price && config.features.gasTracker.isEnabled && }
{ data?.gas_prices && data.gas_prices.average !== null && config.features.gasTracker.isEnabled && (
Gas