diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/BillingPage.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/BillingPage.js b/src/components/BillingPage.js index fbd9732..06a80a6 100644 --- a/src/components/BillingPage.js +++ b/src/components/BillingPage.js @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React, { useState, useEffect } from "react"; import AddNewItemForm from "./Form/AddNewItemForm"; import ItemsDisplay from "./Display/ItemsDisplay"; import SummaryDisplay from "./Display/SummaryDisplay"; @@ -38,6 +38,9 @@ const sampleData = [ ]; const BillingPage = () => { + useEffect(() => { + alert("yo this app in beta"); + }, []); // to be handled by backend const defGSTValue = 18; @@ -48,6 +51,9 @@ const BillingPage = () => { ); }; + useEffect(() => { + }, [items]); + return ( <div> <AddNewItemForm savedItems={sampleData} addItem={getItems} defGSTValue={defGSTValue}/> |