Adding Multiple file uploader.

This commit is contained in:
Kartik Sharma 2025-11-28 15:48:01 +05:30
parent 339ae31465
commit 6da3f3b1b4
3 changed files with 1 additions and 6 deletions

View File

@ -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"

View File

@ -160,7 +160,6 @@ const PurchasePaymentDetails = () => {
onChange={field.onChange}
isLoading={isLoading}
className="m-0"
required={false}
/>
)}
/>

View File

@ -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"
],
};