fix(trading): remove price flash cell from PNL (#2829)

This commit is contained in:
m.ray 2023-02-03 09:59:24 -05:00 committed by GitHub
parent 0eddfa4073
commit 7f1e47d7fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ import {
signedNumberCssClassRules,
DateRangeFilter,
addDecimalsFormatNumber,
PriceCell,
} from '@vegaprotocol/react-helpers';
import { AgGridDynamic as AgGrid, Link } from '@vegaprotocol/ui-toolkit';
import { AgGridColumn } from 'ag-grid-react';
@ -84,7 +85,7 @@ export const PositionsTable = forwardRef<AgGridReact, Props>(
filterParams: { buttons: ['reset'] },
tooltipComponent: TooltipCellComponent,
}}
components={{ AmountCell, PriceFlashCell, ProgressBarCell }}
components={{ AmountCell, PriceFlashCell, PriceCell, ProgressBarCell }}
{...props}
>
<AgGridColumn
@ -335,7 +336,7 @@ export const PositionsTable = forwardRef<AgGridReact, Props>(
? undefined
: addDecimalsFormatNumber(data.realisedPNL, data.decimals);
}}
cellRenderer="PriceFlashCell"
cellRenderer="PriceCell"
headerTooltip={t(
'Profit or loss is realised whenever your position is reduced to zero and the margin is released back to your collateral balance. P&L excludes any fees paid.'
)}
@ -360,7 +361,7 @@ export const PositionsTable = forwardRef<AgGridReact, Props>(
? undefined
: addDecimalsFormatNumber(data.unrealisedPNL, data.decimals)
}
cellRenderer="PriceFlashCell"
cellRenderer="PriceCell"
headerTooltip={t(
'Unrealised profit is the current profit on your open position. Margin is still allocated to your position.'
)}