From f5e06cfc138848774f100fa18169867c6f658d48 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Fri, 3 Jul 2026 10:56:04 +0330 Subject: [PATCH] fix: correct spelling of 'canceled' in payment status across components --- components/dashboard/userAccount/sidebars/transactions/Card.js | 2 +- components/dashboard/userAccount/sidebars/transactions/Head.js | 2 +- components/dashboard/userAccount/sidebars/transactions/List.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/dashboard/userAccount/sidebars/transactions/Card.js b/components/dashboard/userAccount/sidebars/transactions/Card.js index 1e9db60..4a31f63 100644 --- a/components/dashboard/userAccount/sidebars/transactions/Card.js +++ b/components/dashboard/userAccount/sidebars/transactions/Card.js @@ -7,7 +7,7 @@ const PAYMENT_STATUS = { success: { label: "پرداخت شده", cls: "bg-[#E8FADD] text-[#75E22E]" }, pending: { label: "در انتظار", cls: "bg-[#FFF3DD] text-[#FDBA35]" }, failed: { label: "ناموفق", cls: "bg-[#FFE3E2] text-[#FF5450]" }, - cancelled: { label: "لغو شده", cls: "bg-[#FFE3E2] text-[#FF5450]" }, + canceled: { label: "لغو شده", cls: "bg-[#FFE3E2] text-[#FF5450]" }, refunded: { label: "بازگشت وجه", cls: "bg-[#EFEFEF] text-[#616161]" }, }; diff --git a/components/dashboard/userAccount/sidebars/transactions/Head.js b/components/dashboard/userAccount/sidebars/transactions/Head.js index c3a9132..220f388 100644 --- a/components/dashboard/userAccount/sidebars/transactions/Head.js +++ b/components/dashboard/userAccount/sidebars/transactions/Head.js @@ -6,7 +6,7 @@ function Head({ status, setStatus }) { const statusMap = { 0: undefined, // all 1: "pending", - 2: "received", + 2: "success", 3: "canceled", }; diff --git a/components/dashboard/userAccount/sidebars/transactions/List.js b/components/dashboard/userAccount/sidebars/transactions/List.js index c68ba4c..ad0fcad 100644 --- a/components/dashboard/userAccount/sidebars/transactions/List.js +++ b/components/dashboard/userAccount/sidebars/transactions/List.js @@ -14,7 +14,7 @@ const PAYMENT_STATUS = { success: { label: "پرداخت شده", cls: "bg-[#E8FADD] text-[#75E22E]" }, pending: { label: "در انتظار", cls: "bg-[#FFF3DD] text-[#FDBA35]" }, failed: { label: "ناموفق", cls: "bg-[#FFE3E2] text-[#FF5450]" }, - cancelled: { label: "لغو شده", cls: "bg-[#FFE3E2] text-[#FF5450]" }, + canceled: { label: "لغو شده", cls: "bg-[#FFE3E2] text-[#FF5450]" }, refunded: { label: "بازگشت وجه", cls: "bg-[#EFEFEF] text-[#616161]" }, };