fix(trading): use same type

This commit is contained in:
Madalina Raicu
2023-02-16 16:17:42 +00:00
parent 04885308ac
commit cd72adc01d
2 changed files with 2 additions and 9 deletions
@@ -28,7 +28,6 @@ import { NO_MARKET } from './constants';
import { LiquidityContainer } from '../liquidity/liquidity';
import { useNavigate } from 'react-router-dom';
import { Links, Routes } from '../../pages/client-router';
import type { Asset } from '@vegaprotocol/types';
import type { MarketAsset } from '@vegaprotocol/accounts';
type MarketDependantView =
@@ -243,10 +242,7 @@ export const TradePanels = ({
onSelect: (marketId: string) => void;
onMarketClick?: (marketId: string) => void;
onClickCollateral: () => void;
marketAsset?: Pick<
Asset,
'symbol' | 'status' | 'name' | 'id' | 'decimals'
>;
marketAsset?: MarketAsset;
}>(TradingViews[view]);
if (!Component) {
+1 -4
View File
@@ -25,10 +25,7 @@ export interface Datasource extends IDatasource {
getRows(params: GetRowsParams): void;
}
export type MarketAsset = Pick<
Asset,
'symbol' | 'status' | 'name' | 'id' | 'decimals'
>;
export type MarketAsset = Pick<Asset, 'symbol' | 'name' | 'id' | 'decimals'>;
export interface AccountTableProps extends AgGridReactProps {
rowData?: AccountFields[] | null;