2022-02-11 13:56:28 +00:00
|
|
|
import styles from './index.module.scss';
|
2022-02-14 13:35:50 +00:00
|
|
|
import { EtherscanLink } from '@vegaprotocol/ui-toolkit';
|
|
|
|
import { ReactHelpers } from '@vegaprotocol/react-helpers';
|
2022-02-17 05:03:46 +00:00
|
|
|
import { useRouter } from 'next/router';
|
|
|
|
import Link from 'next/link';
|
2022-02-11 13:56:28 +00:00
|
|
|
|
|
|
|
export function Index() {
|
2022-02-17 05:03:46 +00:00
|
|
|
const router = useRouter();
|
|
|
|
console.log(router);
|
2022-02-11 13:56:28 +00:00
|
|
|
return (
|
|
|
|
<div className={styles.page}>
|
2022-02-17 05:03:46 +00:00
|
|
|
<h1>Vega Trading</h1>
|
|
|
|
<nav>
|
|
|
|
{[
|
|
|
|
{ name: 'Portfolio', path: '/portfolio' },
|
|
|
|
{ name: 'Markets', path: '/markets' },
|
|
|
|
].map((route) => (
|
|
|
|
<Link href={route.path} key={route.path}>
|
|
|
|
{route.name}
|
|
|
|
</Link>
|
|
|
|
))}
|
|
|
|
</nav>
|
|
|
|
<h2>Test packages</h2>
|
|
|
|
<ReactHelpers />
|
|
|
|
<EtherscanLink
|
|
|
|
text={`Link to TX: 0x6f534dfbd01cb8a9e15493863f4c0ec13bef47ea84152da0674ab0b57f3b4c9c`}
|
|
|
|
chainId="0x1"
|
|
|
|
tx="0x6f534dfbd01cb8a9e15493863f4c0ec13bef47ea84152da0674ab0b57f3b4c9c"
|
|
|
|
/>
|
2022-02-11 13:56:28 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Index;
|