@@ -23,17 +23,6 @@ const RequestList: FC = () => {
|
||||
type: 'input',
|
||||
placeholder: 'جستجو',
|
||||
},
|
||||
{
|
||||
name: 'status',
|
||||
type: 'select',
|
||||
placeholder: 'وضعیت',
|
||||
options: [
|
||||
{
|
||||
label: 'درحال انتظار',
|
||||
value: 'pending',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'date',
|
||||
type: 'date',
|
||||
@@ -95,17 +84,6 @@ const RequestList: FC = () => {
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'status',
|
||||
title: 'وضعیت',
|
||||
render: (item) => {
|
||||
return (
|
||||
<div className='h-6 w-fit flex items-center bg-[#FFEDCA] text-[#FF7B00] rounded-full px-2.5 text-xs'>
|
||||
{item.status}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'invoices',
|
||||
title: 'فاکتورها',
|
||||
|
||||
@@ -25,15 +25,12 @@ export type RequestItemType = {
|
||||
attachments: string[];
|
||||
};
|
||||
|
||||
export type RequestStatus = "pending" | string;
|
||||
|
||||
export type RequestType = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
deletedAt: string | null;
|
||||
user: UserType;
|
||||
requestNumber: number;
|
||||
status: RequestStatus;
|
||||
items: RequestItemType[];
|
||||
invoices: InvoiceType[]
|
||||
};
|
||||
@@ -86,7 +83,6 @@ export type RequestDetailType = {
|
||||
deletedAt: string | null;
|
||||
user: RequestDetailUserType;
|
||||
requestNumber: number;
|
||||
status: RequestStatus;
|
||||
items: RequestDetailItemType[];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user