chore(trading): remove iceberg side order details (#4540)

This commit is contained in:
Ben 2023-08-11 16:33:34 +01:00 committed by GitHub
parent bf4fb29fe6
commit 39aa27f332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,23 +222,6 @@ export const OrderViewDialog = ({
{order.icebergOrder ? t('Yes') : t('-')}
</div>
</KeyValueTableRow>
{order.icebergOrder && (
<KeyValueTableRow key={'order-side'} className="ml-4">
<div data-testid={'order-side-label'}>{t('Side')}</div>
<div
data-testid={`order-side-value`}
className={classNames('text-right', {
// BUY
'text-market-green-600 dark:text-market-green':
order.side === Schema.Side.SIDE_BUY,
// SELL
'text-market-red': order.side === Schema.Side.SIDE_SELL,
})}
>
{Schema.SideMapping[order.side as Schema.Side]}
</div>
</KeyValueTableRow>
)}
{order.icebergOrder && (
<KeyValueTableRow
key={'order-iceberg-order-peak-size'}