feat: unify currency display to toman across the application

This commit is contained in:
hamed
2026-07-03 10:31:16 +03:30
parent 79f7df2e4d
commit 5bec4848a2
8 changed files with 116 additions and 12 deletions
@@ -1,5 +1,6 @@
import TextLoading from "@/app/component/loading/Text";
import { convertTimestampToJalali } from "@/helper";
import { formatToman } from "@/lib/money";
import Link from "next/link";
const PAYMENT_STATUS = {
@@ -62,7 +63,7 @@ function Card({ data, loading }) {
</TextLoading>
<TextLoading loading={loading} width={80} height={18}>
<p className="text-[#616161] text-[14px] font-medium">
{data.amount_rials ? Number(data.amount_rials).toLocaleString("fa-IR") : "--"} ریال
{data.amount_rials ? formatToman(data.amount_rials) : "--"} تومان
</p>
</TextLoading>
</li>