diff --git a/apps/tokenomics/components/Layout/index.jsx b/apps/tokenomics/components/Layout/index.jsx index b8bf8ead..5ff03c68 100644 --- a/apps/tokenomics/components/Layout/index.jsx +++ b/apps/tokenomics/components/Layout/index.jsx @@ -9,14 +9,21 @@ import PropTypes from 'prop-types'; import { useEffect, useState } from 'react'; import styled from 'styled-components'; + + import { COLOR } from 'libs/ui-theme/src'; + + import { useHelpers } from 'common-util/hooks/useHelpers'; + + import Login from '../Login'; import Footer from './Footer'; import { CustomLayout, DocsLink, Logo } from './styles'; + const wallets = [new PhantomWalletAdapter()]; const LogoSvg = dynamic(() => import('common-util/SVGs/logo')); @@ -45,21 +52,23 @@ const Layout = ({ children }) => { useEffect(() => { if (router.pathname) { const name = router.pathname.split('/')[1]; - setSelectedMenu(name || 'veolas'); + setSelectedMenu(name || 'dev-incentives'); } }, [router.pathname]); const handleMenuItemClick = ({ key }) => { - if (key === 'docs') { - window.open('https://docs.autonolas.network/protocol/tokenomics/', '_blank'); - } else if (key === 'bonding-products') { - window.open('https://bond.olas.network/bonding-products', '_blank'); - } else if (key === 'my-bonds') { - window.open('https://bond.olas.network/my-bonds', '_blank'); - } else { - router.push(`/${key}`); - setSelectedMenu(key); - } + if (key === 'donate') { + window.open('https://govern.olas.network/donate', '_blank'); + } else if (key === 'docs') { + window.open('https://docs.autonolas.network/protocol/tokenomics/', '_blank'); + } else if (key === 'bonding-products') { + window.open('https://bond.olas.network/bonding-products', '_blank'); + } else if (key === 'my-bonds') { + window.open('https://bond.olas.network/my-bonds', '_blank'); + } else { + router.push(`/${key}`); + setSelectedMenu(key); + } }; return ( @@ -80,8 +89,8 @@ const Layout = ({ children }) => { selectedKeys={[selectedMenu]} onClick={handleMenuItemClick} items={[ - { key: 'donate', label: 'Donate' }, { key: 'dev-incentives', label: 'Dev Rewards' }, + { key: 'donate', label: }, { key: 'bonding-products', label: }, { key: 'my-bonds', label: }, { @@ -120,4 +129,4 @@ const LayoutWithWalletProvider = (props) => ( LayoutWithWalletProvider.propTypes = { children: PropTypes.element }; LayoutWithWalletProvider.defaultProps = { children: null }; -export default LayoutWithWalletProvider; +export default LayoutWithWalletProvider; \ No newline at end of file diff --git a/apps/tokenomics/next.config.js b/apps/tokenomics/next.config.js index 56e8cd93..ff80f99a 100644 --- a/apps/tokenomics/next.config.js +++ b/apps/tokenomics/next.config.js @@ -30,8 +30,13 @@ const nextConfig = { return [ { source: '/', - destination: '/donate', + destination: '/dev-incentives', permanent: false, + }, + { + source: '/donate', + destination: 'https://govern.olas.network/donate', + permanent: true, }, { source: '/bonding-products',