From 51f2775ca74da57eb635f71fc99eef2136f89b07 Mon Sep 17 00:00:00 2001 From: lq0-github <1441665200@qq.com> Date: Wed, 15 Jan 2025 11:14:36 +0800 Subject: [PATCH] Fix : margin trading table title --- .../Trading/components/Table/PositionRow.tsx | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/screens/Trading/components/Table/PositionRow.tsx b/screens/Trading/components/Table/PositionRow.tsx index a242930f..47c63ca5 100644 --- a/screens/Trading/components/Table/PositionRow.tsx +++ b/screens/Trading/components/Table/PositionRow.tsx @@ -163,22 +163,15 @@ const PositionRow = ({ - + {entryPrice !== null && entryPrice !== undefined ? ( ${beautifyPrice(entryPrice)} ) : ( - )} - - ${beautifyPrice(indexPrice)} - - - ${beautifyPrice(LiqPrice)} - + ${beautifyPrice(indexPrice)} + ${beautifyPrice(LiqPrice)}

0 ? "text-green-150" : pnl < 0 ? "text-red-150" : "text-gray-400"}`}> {pnl === 0 ? "" : `${pnl > 0 ? `+$` : `-$`}`} @@ -280,7 +273,7 @@ const PositionRow = ({

Entry Price

-

+

{entryPrice !== null ? ( ${beautifyPrice(entryPrice)} ) : ( @@ -290,11 +283,11 @@ const PositionRow = ({

Index Price

-

${beautifyPrice(indexPrice)}

+

${beautifyPrice(indexPrice)}

Liq. Price

-

${beautifyPrice(LiqPrice)}

+

${beautifyPrice(LiqPrice)}

Opening time