Adding Multiple file uploader.
This commit is contained in:
parent
339ae31465
commit
6da3f3b1b4
@ -4,7 +4,6 @@ import Label from "../common/Label";
|
||||
|
||||
const MultipleFileUploader = ({
|
||||
label = "Upload Documents",
|
||||
required = false,
|
||||
invoiceAttachmentTypeId,
|
||||
value = [],
|
||||
onChange,
|
||||
@ -61,7 +60,7 @@ const MultipleFileUploader = ({
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Label required={required}>{label}</Label>
|
||||
<Label >{label}</Label>
|
||||
|
||||
<div
|
||||
className="border border-secondary border-dashed rounded p-4 text-center"
|
||||
|
||||
@ -160,7 +160,6 @@ const PurchasePaymentDetails = () => {
|
||||
onChange={field.onChange}
|
||||
isLoading={isLoading}
|
||||
className="m-0"
|
||||
required={false}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
||||
@ -93,7 +93,6 @@ export const PurchaseSchema = z.object({
|
||||
paymentDueDate: z.coerce.date().nullable(),
|
||||
transportCharges: z.number().nullable(),
|
||||
description: z.string().min(1, { message: "Description is required" }),
|
||||
invoiceAttachmentTypeId: z.string().nullable(),
|
||||
attachments: z.array(SingleAttachmentSchema).optional(),
|
||||
|
||||
// attachments: z.array(AttachmentSchema([], 25)).optional(),
|
||||
@ -134,7 +133,6 @@ export const defaultPurchaseValue = {
|
||||
paymentDueDate: null,
|
||||
transportCharges: null,
|
||||
description: "",
|
||||
invoiceAttachmentTypeId: null,
|
||||
attachments: [],
|
||||
|
||||
// attachments: [],
|
||||
@ -171,7 +169,6 @@ export const getStepFields = (stepIndex) => {
|
||||
"transportCharges",
|
||||
"paymentDueDate",
|
||||
"description",
|
||||
"invoiceAttachmentTypeId"
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user