handle form print
This commit is contained in:
@@ -22,8 +22,8 @@ const OrderItem: FC<Props> = ({ item, estimatedDays }) => {
|
||||
<div>#{item.id}</div>
|
||||
<Link to={Paths.print.form + item.id + `/${id}`}>
|
||||
<Button
|
||||
label='فرم پرینت'
|
||||
className='w-fit px-6'
|
||||
label={item.printAttributes?.length ? 'ویرایش فرم پرینت' : 'فرم پرینت'}
|
||||
className='w-fit px-6 bg-blue-400 text-white'
|
||||
/>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@@ -144,6 +144,10 @@ export type OrderItemType = {
|
||||
value: string;
|
||||
}[];
|
||||
discount: number;
|
||||
printAttributes?: {
|
||||
value: string;
|
||||
fieldId: number;
|
||||
}[];
|
||||
};
|
||||
export type TicketsResponseType = BaseResponse<TicketType[]>;
|
||||
export type OrderDetailResponseType = BaseResponse<MyOrderType>;
|
||||
|
||||
Reference in New Issue
Block a user