Skip to content
Snippets Groups Projects
Commit 087b68ed authored by meskio's avatar meskio :tent:
Browse files

Set a default price when you add a product

parent 77f3ad80
No related branches found
No related tags found
No related merge requests found
...@@ -3,10 +3,10 @@ import { Form, InputGroup, Col, Row, Button } from "react-bootstrap"; ...@@ -3,10 +3,10 @@ import { Form, InputGroup, Col, Row, Button } from "react-bootstrap";
function ProductAdder(props) { function ProductAdder(props) {
const [code, setCode] = useState(); const [code, setCode] = useState();
const [name, setName] = useState(); const [name, setName] = useState("");
const [eur, setEur] = useState(); const [eur, setEur] = useState(0);
const [cents, setCents] = useState(); const [cents, setCents] = useState(0);
const [stock, setStock] = useState(); const [stock, setStock] = useState(0);
const add = (e) => { const add = (e) => {
e.preventDefault(); e.preventDefault();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment