diff --git a/site/components/Utilities.js b/site/components/Utilities.js deleted file mode 100644 index 8fd00b6..0000000 --- a/site/components/Utilities.js +++ /dev/null @@ -1,62 +0,0 @@ -import { useWeb3React } from '@web3-react/core' -import { findByChainId } from 'chain-list' -import Image from 'next/image' -import { useTranslations } from 'next-intl' - -import { Link } from '../navigation' - -import Button from './Button' - -const UtilityBox = ({ buttonText, buttonHref }) => ( -
- -
-
- -
-
-
-
- -
-
- -
-) - -const Utilities = function () { - const t = useTranslations() - const { chainId } = useWeb3React() - const { nativeTokenSymbol = 'hETH' } = findByChainId(chainId) - - return ( -
-
-

{t('utilties')}

-
- - - - - - - -
- ) -} - -export default Utilities diff --git a/site/components/UtilitiesTabs.js b/site/components/UtilitiesTabs.js index 8bfdcd1..dbb7165 100644 --- a/site/components/UtilitiesTabs.js +++ b/site/components/UtilitiesTabs.js @@ -21,30 +21,30 @@ function UtilitiesTabs() { label: t('token-approvals'), selected: pathname === '/token-approvals' }, - { - href: '/wrap-eth', - label: t('wrap-unwrap'), - selected: pathname === '/wrap-eth' - }, { href: '/token-revokes', label: t('token-revokes'), selected: pathname === '/token-revokes' }, - { - href: '/dp-auctions', - label: t('dp-auctions'), - selected: pathname === '/dp-auctions' - }, { href: '/payment-streams', label: t('payment-streams'), selected: pathname === '/payment-streams' }, + { + href: '/wrap-eth', + label: t('wrap-unwrap'), + selected: pathname === '/wrap-eth' + }, { href: '/sign-message', label: t('sign-message'), selected: pathname === '/sign-message' + }, + { + href: '/dp-auctions', + label: t('dp-auctions'), + selected: pathname === '/dp-auctions' } ]} /> diff --git a/site/pages/[locale]/index.js b/site/pages/[locale]/index.js deleted file mode 100644 index 2377921..0000000 --- a/site/pages/[locale]/index.js +++ /dev/null @@ -1,14 +0,0 @@ -import Layout from '../../components/Layout' -import Utilities from '../../components/Utilities' - -const HomePage = () => ( - -
- -
-
-) - -export { getStaticProps, getStaticPaths } from '../../utils/staticProps' - -export default HomePage diff --git a/site/pages/index.js b/site/pages/index.js index 620702f..c0d2fb1 100644 --- a/site/pages/index.js +++ b/site/pages/index.js @@ -1,13 +1,12 @@ import { useRedirectToDefaultLocale } from '../hooks/useRedirectToDefaultLocale' import { defaultLocale, locales } from '../navigation' -const HomePage = () => { +function HomePage() { useRedirectToDefaultLocale({ defaultLocale, locales, - redirectPage: '/' + redirectPage: '/merkle-claims' }) - return null }