feat(console-lite): add portfolio screen and accounts container (#485)

This commit is contained in:
Elmar 2022-05-27 12:28:55 +01:00 committed by GitHub
parent 66c18a2b1b
commit da0536f8a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1 @@
export * from './portfolio';

View File

@ -0,0 +1,13 @@
import { AccountsContainer } from '@vegaprotocol/accounts';
import { t } from '@vegaprotocol/react-helpers';
export const Portfolio = () => {
return (
<section>
<h2 className="text-lg mb-16">{t('Assets')}</h2>
<div className="h-screen">
<AccountsContainer />
</div>
</section>
);
};

View File

@ -1,6 +1,7 @@
import { t } from '@vegaprotocol/react-helpers';
import { DealTicketContainer } from '../components/deal-ticket';
import { SimpleMarketList } from '../components/simple-market-list';
import { Portfolio } from '../components/portfolio';
export const ROUTES = {
HOME: '/',
@ -45,6 +46,6 @@ export const routerConfig = [
path: ROUTES.PORTFOLIO,
name: 'Portfolio',
text: t('Portfolio'),
element: <div>Portfolio</div>,
element: <Portfolio />,
},
];