Skip to content

Commit

Permalink
Fix : margin trading table title
Browse files Browse the repository at this point in the history
  • Loading branch information
lq0-github committed Jan 15, 2025
1 parent 1a737ca commit 51f2775
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions screens/Trading/components/Table/PositionRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,22 +163,15 @@ const PositionRow = ({
</div>
</div>
</td>
<td
title={entryPrice !== null && entryPrice !== undefined ? `$${entryPrice}` : ""}
className="cursor-default"
>
<td>
{entryPrice !== null && entryPrice !== undefined ? (
<span>${beautifyPrice(entryPrice)}</span>
) : (
<span className="text-gray-500">-</span>
)}
</td>
<td title={`$${indexPrice?.toString()}`} className="cursor-default">
${beautifyPrice(indexPrice)}
</td>
<td title={`$${LiqPrice?.toString()}`} className="cursor-default">
${beautifyPrice(LiqPrice)}
</td>
<td>${beautifyPrice(indexPrice)}</td>
<td>${beautifyPrice(LiqPrice)}</td>
<td>
<p className={`${pnl > 0 ? "text-green-150" : pnl < 0 ? "text-red-150" : "text-gray-400"}`}>
{pnl === 0 ? "" : `${pnl > 0 ? `+$` : `-$`}`}
Expand Down Expand Up @@ -280,7 +273,7 @@ const PositionRow = ({
</div>
<div className="flex items-center justify-between text-sm mb-[18px]">
<p className="text-gray-300">Entry Price</p>
<p title={entryPrice !== null && entryPrice !== undefined ? `$${entryPrice}` : ""}>
<p>
{entryPrice !== null ? (
<span>${beautifyPrice(entryPrice)}</span>
) : (
Expand All @@ -290,11 +283,11 @@ const PositionRow = ({
</div>
<div className="flex items-center justify-between text-sm mb-[18px]">
<p className="text-gray-300">Index Price</p>
<p title={indexPrice?.toString()}>${beautifyPrice(indexPrice)}</p>
<p>${beautifyPrice(indexPrice)}</p>
</div>
<div className="flex items-center justify-between text-sm mb-[18px]">
<p className="text-gray-300">Liq. Price</p>
<p title={LiqPrice?.toString()}>${beautifyPrice(LiqPrice)}</p>
<p>${beautifyPrice(LiqPrice)}</p>
</div>
<div className="flex items-center justify-between text-sm mb-[18px]">
<p className="text-gray-300">Opening time</p>
Expand Down

0 comments on commit 51f2775

Please sign in to comment.