@@ -468,28 +468,31 @@ const NewListingPageInner = () => {
468468 < label className = "text-sm opacity-80" > Tags</ label >
469469 < TagsInput value = { tags } onChange = { setTags } placeholder = "e.g. iphone mint boxed (space separated)" />
470470 </ div >
471- < div className = "flex items-center gap-3" >
472- < label className = "label cursor-pointer justify-start gap-2 m-0 p-0" >
473- < input
474- type = "checkbox"
475- className = "checkbox checkbox-sm"
476- checked = { unlimitedQuantity }
477- onChange = { e => setUnlimitedQuantity ( e . target . checked ) }
478- />
479- < span className = "label-text" > Unlimited quantity</ span >
480- </ label >
481- { ! unlimitedQuantity ? (
482- < input
483- className = "input input-bordered input-sm w-28"
484- placeholder = "Quantity"
485- type = "number"
486- min = { 1 }
487- value = { initialQuantity }
488- onFocus = { e => ( e . target as HTMLInputElement ) . select ( ) }
489- onClick = { e => ( e . currentTarget as HTMLInputElement ) . select ( ) }
490- onChange = { e => setInitialQuantity ( e . target . value ) }
491- />
492- ) : null }
471+ < div className = "space-y-1" >
472+ < label className = "text-sm opacity-80" > Quantity</ label >
473+ < div className = "flex items-center gap-3" >
474+ < label className = "label cursor-pointer justify-start gap-2 m-0 p-0" >
475+ < input
476+ type = "checkbox"
477+ className = "checkbox checkbox-sm"
478+ checked = { unlimitedQuantity }
479+ onChange = { e => setUnlimitedQuantity ( e . target . checked ) }
480+ />
481+ < span className = "label-text" > Unlimited</ span >
482+ </ label >
483+ { ! unlimitedQuantity ? (
484+ < input
485+ className = "input input-bordered input-sm w-28"
486+ placeholder = "Quantity"
487+ type = "number"
488+ min = { 1 }
489+ value = { initialQuantity }
490+ onFocus = { e => ( e . target as HTMLInputElement ) . select ( ) }
491+ onClick = { e => ( e . currentTarget as HTMLInputElement ) . select ( ) }
492+ onChange = { e => setInitialQuantity ( e . target . value ) }
493+ />
494+ ) : null }
495+ </ div >
493496 </ div >
494497 < div className = "space-y-1" >
495498 < label className = "text-sm opacity-80 block" > Price</ label >
0 commit comments