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