feat: #938 add fills to market layout (#1072)

This commit is contained in:
m.ray 2022-08-19 10:03:31 +02:00 committed by GitHub
parent b2c0f202e2
commit 204e031967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ import {
import { OrderbookContainer } from '@vegaprotocol/market-depth'; import { OrderbookContainer } from '@vegaprotocol/market-depth';
import { SelectMarketPopover } from '@vegaprotocol/market-list'; import { SelectMarketPopover } from '@vegaprotocol/market-list';
import { OrderListContainer } from '@vegaprotocol/orders'; import { OrderListContainer } from '@vegaprotocol/orders';
import { FillsContainer } from '@vegaprotocol/fills';
import { PositionsContainer } from '@vegaprotocol/positions'; import { PositionsContainer } from '@vegaprotocol/positions';
import { import {
addDecimalsFormatNumber, addDecimalsFormatNumber,
@ -47,6 +48,7 @@ const TradingViews = {
Positions: PositionsContainer, Positions: PositionsContainer,
Orders: OrderListContainer, Orders: OrderListContainer,
Collateral: AccountsContainer, Collateral: AccountsContainer,
Fills: FillsContainer,
}; };
type TradingView = keyof typeof TradingViews; type TradingView = keyof typeof TradingViews;
@ -239,6 +241,9 @@ export const TradeGrid = ({ market }: TradeGridProps) => {
<Tab id="orders" name={t('Orders')}> <Tab id="orders" name={t('Orders')}>
<TradingViews.Orders /> <TradingViews.Orders />
</Tab> </Tab>
<Tab id="fills" name={t('Fills')}>
<TradingViews.Fills />
</Tab>
<Tab id="accounts" name={t('Collateral')}> <Tab id="accounts" name={t('Collateral')}>
<TradingViews.Collateral /> <TradingViews.Collateral />
</Tab> </Tab>