fix error
This commit is contained in:
@@ -13,18 +13,23 @@ export const StatusBoxItem: FC<Props> = ({ item }) => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col gap-3">
|
<div className="flex flex-col gap-3">
|
||||||
<p className="font-normal text-base text-secondary-text-color">{item?.title}</p>
|
<p className="font-normal text-base text-secondary-text-color">{item?.title}</p>
|
||||||
<p className="font-medium text-[28px] text-primary-text-color">
|
<div className="font-medium text-[28px] text-primary-text-color">
|
||||||
{item?.name === "coin" && <p className="flex items-end gap-x-1">
|
{item?.name === "coin" && (
|
||||||
{filterNumber(item?.value)} <p className="text-lg font-normal">تومان</p>
|
<span className="flex items-end gap-x-1">
|
||||||
</p>}
|
{filterNumber(item?.value)} <span className="text-lg font-normal">تومان</span>
|
||||||
{item?.name === "dollar" && <p className="text-lg font-normal flex items-center gap-x-1">$
|
</span>
|
||||||
<p className="font-medium text-[28px] text-primary-text-color">
|
)}
|
||||||
{filterNumber(item?.value)}
|
{item?.name === "dollar" && (
|
||||||
</p>
|
<span className="text-lg font-normal flex items-center gap-x-1">
|
||||||
</p>}
|
$ <span className="font-medium text-[28px] text-primary-text-color">
|
||||||
|
{filterNumber(item?.value)}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
{item?.name !== "coin" && item?.name !== "dollar" && item?.value}
|
{item?.name !== "coin" && item?.name !== "dollar" && item?.value}
|
||||||
</p>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user