Update gift modal
This commit is contained in:
@@ -296,30 +296,30 @@ export function GiftModal({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{isEditMode && (
|
{/*{isEditMode && (*/}
|
||||||
<>
|
{/* <>*/}
|
||||||
<Label
|
{/* <Label*/}
|
||||||
htmlFor="quantity_received"
|
{/* htmlFor="quantity_received"*/}
|
||||||
className="text-right col-span-1 pt-2"
|
{/* className="text-right col-span-1 pt-2"*/}
|
||||||
>
|
{/* >*/}
|
||||||
Received
|
{/* Received*/}
|
||||||
</Label>
|
{/* </Label>*/}
|
||||||
<div className="col-span-1">
|
{/* <div className="col-span-1">*/}
|
||||||
<Input
|
{/* <Input*/}
|
||||||
id="quantity_received"
|
{/* id="quantity_received"*/}
|
||||||
type="number"
|
{/* type="number"*/}
|
||||||
min="0"
|
{/* min="0"*/}
|
||||||
placeholder="0"
|
{/* placeholder="0"*/}
|
||||||
{...register("quantity_received", {
|
{/* {...register("quantity_received", {*/}
|
||||||
valueAsNumber: true,
|
{/* valueAsNumber: true,*/}
|
||||||
validate: (value) =>
|
{/* validate: (value) =>*/}
|
||||||
(value && value >= 0) ||
|
{/* (value && value >= 0) ||*/}
|
||||||
"Received quantity cannot be negative",
|
{/* "Received quantity cannot be negative",*/}
|
||||||
})}
|
{/* })}*/}
|
||||||
/>
|
{/* />*/}
|
||||||
</div>
|
{/* </div>*/}
|
||||||
</>
|
{/* </>*/}
|
||||||
)}
|
{/*)}*/}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="grid grid-cols-4 gap-4">
|
<div className="grid grid-cols-4 gap-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user