From a7965136d75c97bb6e2696c46a7d4a27dc33996c Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Wed, 7 Jul 2021 12:46:08 +0530 Subject: create basic menu for adding transport info --- src/components/Pages/BillingPage.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/components/Pages/BillingPage.tsx') diff --git a/src/components/Pages/BillingPage.tsx b/src/components/Pages/BillingPage.tsx index c88435b..9f98cb9 100644 --- a/src/components/Pages/BillingPage.tsx +++ b/src/components/Pages/BillingPage.tsx @@ -22,6 +22,8 @@ import InvoiceInfoMenu from "./../Menu/InvoiceInfoMenu"; import ItemsDisplay from "./../Display/ItemsDisplay"; import SummaryDisplay from "./../Display/SummaryDisplay"; +import TransportForm from "./../Form/Transport/TransportForm"; + const BillingPage: React.FC = () => { const [savedItems, getSavedItems] = useState([]); const [savedPeople, getSavedPeople] = useState([]); @@ -29,6 +31,7 @@ const BillingPage: React.FC = () => { const [registerPersonFormVisibility, setRegisterPersonFormVisibility] = useState(false); const [items, setItems] = useState([]); const [invoiceNumber, setInvoiceNumber] = useState(1234); // get data from backend + const [showTransportForm, setShowTransportForm] = useState(false); const getRegisteredItems = () => axios.get(`/api/items/get-all`) @@ -69,6 +72,12 @@ const BillingPage: React.FC = () => { /> } + {showTransportForm && + + } + { />
- +
-- cgit v1.2.3