* feat: [console-lite] - simple market list toolbar - fixes in unit tests * feat: [console-lite] - simple market list toolbar - fixes in unit tests * feat: [console-lite] - simple market list toolbar - fixes in unit tests * feat: [console-lite] - simple market list toolbar - fixes in unit tests * feat: [console-lite] - improve simple market list toolbar, improve int and unit test * feat: [console-lite] - adjust int test * feat: [console-lite] - add theme-lite, adjust css's to design * feat: [console-lite] - remove redundant class name * feat: [console-lite] - market list toolbar - change the concept - use router links * feat: [console-lite] - market list toolbar - improve some css * feat: [console-lite] - market list toolbar - improve some css, review feedback Co-authored-by: maciek <maciek@vegaprotocol.io>
65 lines
1.4 KiB
TypeScript
65 lines
1.4 KiB
TypeScript
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: '/',
|
|
MARKETS: 'markets',
|
|
TRADING: 'trading',
|
|
LIQUIDITY: 'liquidity',
|
|
PORTFOLIO: 'portfolio',
|
|
};
|
|
|
|
export const routerConfig = [
|
|
{
|
|
path: ROUTES.HOME,
|
|
name: 'Home',
|
|
text: t('Home'),
|
|
element: <div>Home</div>,
|
|
},
|
|
{
|
|
path: ROUTES.MARKETS,
|
|
children: [
|
|
{
|
|
path: `:state`,
|
|
element: <SimpleMarketList />,
|
|
children: [
|
|
{
|
|
path: `:product`,
|
|
element: <SimpleMarketList />,
|
|
children: [{ path: `:asset`, element: <SimpleMarketList /> }],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
name: 'Markets',
|
|
text: t('Markets'),
|
|
element: <SimpleMarketList />,
|
|
},
|
|
{
|
|
path: ROUTES.TRADING,
|
|
name: 'Trading',
|
|
text: t('Trading'),
|
|
element: <DealTicketContainer />,
|
|
children: [
|
|
{
|
|
path: ':marketId',
|
|
element: <DealTicketContainer />,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: ROUTES.LIQUIDITY,
|
|
name: 'Liquidity',
|
|
text: t('Liquidity'),
|
|
element: <div>Liquidity</div>,
|
|
},
|
|
{
|
|
path: ROUTES.PORTFOLIO,
|
|
name: 'Portfolio',
|
|
text: t('Portfolio'),
|
|
element: <Portfolio />,
|
|
},
|
|
];
|