J'suis pas en train de devenir fou nonon
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { Form } from "react-bootstrap";
|
||||
|
||||
const QtySelect = ({ qty }) => {
|
||||
const QtySelect = ({onChange, qty }) => {
|
||||
return (
|
||||
<Form.Select className="qty-select">
|
||||
<Form.Select onChange={(e)=>onChange(e.target.value)} className="qty-select">
|
||||
{Array.from(Array(qty), (e, i) => {
|
||||
return (
|
||||
<option value={i+1} key={i+1}>{i+1}</option>
|
||||
|
Reference in New Issue
Block a user