8a829964be
* Add ag-grid * Add lazy loaded ag-grid component * Add theme context, move VegaWallet to separate lib * Fix trading app cypress configuration * Lazy load ag-grid theme css files * Encapsulate theme switch hook
18 lines
314 B
TypeScript
18 lines
314 B
TypeScript
import { useVegaWallet } from '@vegaprotocol/wallet';
|
|
|
|
const Portfolio = () => {
|
|
const { keypair } = useVegaWallet();
|
|
return (
|
|
<div>
|
|
<h1>Portfolio</h1>
|
|
{keypair && (
|
|
<p>
|
|
Keypair: {keypair.name} {keypair.pub}
|
|
</p>
|
|
)}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Portfolio;
|