ticket fix

This commit is contained in:
hamid zarghami
2026-02-25 12:05:45 +03:30
parent 62257d093b
commit f3f7e9c3ec
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -96,6 +96,8 @@ export const fa = {
answered: "پاسخ داده شده",
CLOSED: "بسته شده",
closed: "بسته شده",
OPEN: "باز",
open: "باز",
status_unknown: "نامشخص",
new_ticket: "تیکت جدید",
submit_your_message: "پیام خود را ثبت کنید",
+2
View File
@@ -16,6 +16,8 @@ const TicketList: FC = () => {
const tickets: TicketListItemType[] = getTickets.data?.data ?? []
const statusLabels: Record<string, string> = {
OPEN: 'باز',
open: 'باز',
ANSWERED: 'پاسخ داده شده',
PENDING: 'در حال بررسی',
CLOSED: 'بسته شده'
+1
View File
@@ -35,6 +35,7 @@ export const getStatusClass = (status: string) => {
const s = status?.toUpperCase();
if (s === "CLOSED") return "bg-red-100 text-red-400";
if (s === "PENDING") return "bg-orange-100 text-orange-700";
if (s === "OPEN") return "bg-green-100 text-green-400";
return "bg-green-100 text-green-400";
};