vega-frontend-monorepo/apps/trading/pages/index.tsx

25 lines
688 B
TypeScript
Raw Normal View History

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';
export function Index() {
2022-02-17 05:03:46 +00:00
const router = useRouter();
console.log(router);
return (
<div className={styles.page}>
2022-02-17 05:03:46 +00:00
<h1>Vega Trading</h1>
2022-02-17 05:08:17 +00:00
<hr />
2022-02-17 05:03:46 +00:00
<h2>Test packages</h2>
<ReactHelpers />
<EtherscanLink
text={`Link to TX: 0x6f534dfbd01cb8a9e15493863f4c0ec13bef47ea84152da0674ab0b57f3b4c9c`}
chainId="0x1"
tx="0x6f534dfbd01cb8a9e15493863f4c0ec13bef47ea84152da0674ab0b57f3b4c9c"
/>
</div>
);
}
export default Index;