diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-17 13:12:11 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-17 13:12:11 +0530 |
commit | 2efc453d20aca682ac3f34af8687d4bb28642195 (patch) | |
tree | 4c1c36b66e50829d9bec7161456f450bad338148 /src/components/BillingPage.js | |
parent | f1475f5815d2accd40342c95ed2cf97a96e6d676 (diff) |
now data is properly being passed from AddNewItemForm to ItemsDisplay which properly renders it
Diffstat (limited to 'src/components/BillingPage.js')
-rw-r--r-- | src/components/BillingPage.js | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/components/BillingPage.js b/src/components/BillingPage.js index 1ff8654..0726f3c 100644 --- a/src/components/BillingPage.js +++ b/src/components/BillingPage.js @@ -26,22 +26,10 @@ const BillingPage = () => { // to be handled by backend const defGSTValue = 18; - /* Note to the dumbass coding this alone - * Right now only the models are getting passed - * into ItemsDisplay because I wanted to - * take screenshots and shit. - * Implement a feature such that I can pass in a - * whole array of objects and ItemsDisplay processes - * the itemNames, prices and shit. - * This file should only handle - * getting the items from AddNewItemForm - * putting it into the list - * and pass it into ItemsDisplay - */ const [items, setItems] = useState([]); const getItems = (item) => { setItems( - [...items, item.Model] + [...items, item] ); }; |