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

19 lines
524 B
TypeScript
Raw Normal View History

import { t } from '@vegaprotocol/react-helpers';
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>
<h1>{t('Portfolio')}</h1>
{keypair && <p>{t(`Keypair: ${keypair.name} ${keypair.pub}`)}</p>}
<div className="flex gap-4">
<AnchorButton href="/portfolio/deposit">{t('Deposit')}</AnchorButton>
</div>
2022-02-17 05:03:46 +00:00
</div>
);
};
export default Portfolio;