From f98be4ca3816dcad16029fee30b66c9219c4cd57 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Thu, 15 Apr 2021 23:16:16 +0530 Subject: laid out the BillingForm elements in a sexy way --- src/components/Form/Form.js | 114 +++++++++++++++++++++++++------------------- 1 file changed, 66 insertions(+), 48 deletions(-) (limited to 'src/components/Form/Form.js') diff --git a/src/components/Form/Form.js b/src/components/Form/Form.js index 5cb5675..094f881 100644 --- a/src/components/Form/Form.js +++ b/src/components/Form/Form.js @@ -8,6 +8,7 @@ const BillingForm = (props) => { const [itemPriceValue, setItemPriceValue] = useState(0.00); const [itemDiscountValue, setItemDiscountValue] = useState(0.00); const [itemGSTValue, setItemGSTValue] = useState(18); + const [itemQtyValue, setItemQtyValue] = useState(1); // Extract the model names from savedItems const savedItems = props.savedItems; @@ -24,66 +25,83 @@ const BillingForm = (props) => { ); return ( -
-
+ { event.preventDefault(); console.log(itemNameValue, itemDescValue, itemPriceValue); } }> - -