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

22 lines
490 B
TypeScript
Raw Normal View History

import { AnchorButton } from '@vegaprotocol/ui-toolkit';
import { useVegaWallet } from '@vegaprotocol/wallet';
2022-02-17 05:03:46 +00:00
const Portfolio = () => {
const { keypair } = useVegaWallet();
2022-02-17 05:03:46 +00:00
return (
<div>
2022-02-24 02:34:04 +00:00
<h1>Portfolio</h1>
{keypair && (
<p>
Keypair: {keypair.name} {keypair.pub}
</p>
)}
<div className="flex gap-4">
<AnchorButton href="/portfolio/deposit">Deposit</AnchorButton>
</div>
2022-02-17 05:03:46 +00:00
</div>
);
};
export default Portfolio;