From 060d935a47b244656e53c880cc9e792fd5841982 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sun, 2 May 2021 19:51:35 +0530 Subject: fixed errors and added new incomplete form to register a new client --- src/components/BillingPage.js | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) (limited to 'src/components/BillingPage.js') diff --git a/src/components/BillingPage.js b/src/components/BillingPage.js index 6ebaa1c..be2e299 100644 --- a/src/components/BillingPage.js +++ b/src/components/BillingPage.js @@ -12,6 +12,8 @@ import axios from "axios"; import AddNewItemForm from "./Form/Items/AddNewItemForm"; import RegisterItemForm from "./Form/Items/RegisterItemForm"; +import RegisterPersonForm from "./Form/People/RegisterPersonForm"; + import MetaInfoForm from "./Form/MetaInfoForm"; import ItemsDisplay from "./Display/ItemsDisplay"; @@ -19,7 +21,8 @@ import SummaryDisplay from "./Display/SummaryDisplay"; const BillingPage = () => { const [savedItems, getSavedItems] = useState([]); - const [registerFormVisibility, setRegisterFormVisibility] = useState(false); + const [registerItemFormVisibility, setRegisterItemFormVisibility] = useState(false); + const [registerPersonFormVisibility, setRegisterPersonFormVisibility] = useState(false); const getRegisteredItems = () => { axios.get(`/api/items`) @@ -49,21 +52,35 @@ const BillingPage = () => { return ( <> - - - {registerFormVisibility && + {registerItemFormVisibility && } - + {registerPersonFormVisibility && + + } + + + + +
-- cgit v1.2.3