J'suis pas en train de devenir fou nonon

This commit is contained in:
Victor Turgeon
2022-11-06 17:28:57 -05:00
parent c7070de05e
commit 5a2f0fa8b0
2 changed files with 8 additions and 2 deletions

View File

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