ticket fix
This commit is contained in:
@@ -16,6 +16,8 @@ const TicketList: FC = () => {
|
||||
const tickets: TicketListItemType[] = getTickets.data?.data ?? []
|
||||
|
||||
const statusLabels: Record<string, string> = {
|
||||
OPEN: 'باز',
|
||||
open: 'باز',
|
||||
ANSWERED: 'پاسخ داده شده',
|
||||
PENDING: 'در حال بررسی',
|
||||
CLOSED: 'بسته شده'
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user