From 177427b5821a67e141236e6aeb4db12d76b050a0 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Wed, 7 Jul 2021 15:34:04 +0530 Subject: styled and added basic functionality to TransportForm --- src/components/Pages/BillingPage.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/components/Pages') diff --git a/src/components/Pages/BillingPage.tsx b/src/components/Pages/BillingPage.tsx index 9f98cb9..3949beb 100644 --- a/src/components/Pages/BillingPage.tsx +++ b/src/components/Pages/BillingPage.tsx @@ -9,7 +9,7 @@ import React, { useState, useEffect } from "react"; import axios from "axios"; -import { Item, Person } from "../../interfaces"; +import { Item, Person, Transport } from "../../interfaces"; import AddNewItemForm from "./../Form/Items/AddNewItemForm"; import RegisterItemForm from "./../Form/Items/RegisterItemForm"; @@ -32,6 +32,8 @@ const BillingPage: React.FC = () => { const [items, setItems] = useState([]); const [invoiceNumber, setInvoiceNumber] = useState(1234); // get data from backend const [showTransportForm, setShowTransportForm] = useState(false); + const [transporter, setTransporter] = useState({Name: "", VehicleNum: "", Method: "", GSTIN: "", Builty: ""}) + console.log(transporter); const getRegisteredItems = () => axios.get(`/api/items/get-all`) @@ -72,9 +74,10 @@ const BillingPage: React.FC = () => { /> } - {showTransportForm && + {showTransportForm && } -- cgit v1.2.3