diff options
Diffstat (limited to 'src/components/BillingPage.js')
-rw-r--r-- | src/components/BillingPage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/BillingPage.js b/src/components/BillingPage.js index fc09694..c2aa158 100644 --- a/src/components/BillingPage.js +++ b/src/components/BillingPage.js @@ -16,7 +16,7 @@ import ItemsDisplay from "./Display/ItemsDisplay"; import SummaryDisplay from "./Display/SummaryDisplay"; const BillingPage = () => { - const [savedItems, getSavedItems] = useState([]) + const [savedItems, getSavedItems] = useState([]); const getRegisteredItems = () => { axios.get(`/api/items`) @@ -47,7 +47,7 @@ const BillingPage = () => { return ( <> <AddNewItemForm savedItems={savedItems} addItem={getItems} defGSTValue={defGSTValue}/> - <RegisterItemForm/> + <RegisterItemForm updateItemsList={getRegisteredItems}/> <ItemsDisplay items={items} defGSTValue={defGSTValue}/> <div className={"BillingPageFlex"}> <MetaInfoForm/> |