ticket fix
This commit is contained in:
@@ -96,6 +96,8 @@ export const fa = {
|
|||||||
answered: "پاسخ داده شده",
|
answered: "پاسخ داده شده",
|
||||||
CLOSED: "بسته شده",
|
CLOSED: "بسته شده",
|
||||||
closed: "بسته شده",
|
closed: "بسته شده",
|
||||||
|
OPEN: "باز",
|
||||||
|
open: "باز",
|
||||||
status_unknown: "نامشخص",
|
status_unknown: "نامشخص",
|
||||||
new_ticket: "تیکت جدید",
|
new_ticket: "تیکت جدید",
|
||||||
submit_your_message: "پیام خود را ثبت کنید",
|
submit_your_message: "پیام خود را ثبت کنید",
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ const TicketList: FC = () => {
|
|||||||
const tickets: TicketListItemType[] = getTickets.data?.data ?? []
|
const tickets: TicketListItemType[] = getTickets.data?.data ?? []
|
||||||
|
|
||||||
const statusLabels: Record<string, string> = {
|
const statusLabels: Record<string, string> = {
|
||||||
|
OPEN: 'باز',
|
||||||
|
open: 'باز',
|
||||||
ANSWERED: 'پاسخ داده شده',
|
ANSWERED: 'پاسخ داده شده',
|
||||||
PENDING: 'در حال بررسی',
|
PENDING: 'در حال بررسی',
|
||||||
CLOSED: 'بسته شده'
|
CLOSED: 'بسته شده'
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export const getStatusClass = (status: string) => {
|
|||||||
const s = status?.toUpperCase();
|
const s = status?.toUpperCase();
|
||||||
if (s === "CLOSED") return "bg-red-100 text-red-400";
|
if (s === "CLOSED") return "bg-red-100 text-red-400";
|
||||||
if (s === "PENDING") return "bg-orange-100 text-orange-700";
|
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";
|
return "bg-green-100 text-green-400";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user