aboutsummaryrefslogtreecommitdiff
path: root/src/components/Form/Document
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-08-08 16:11:08 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-08-08 16:11:08 +0530
commit8c906c98b2a2994286731357831ca8005ef0d73f (patch)
treefd4f7a283e230d149099fe285ae7a56cda237e64 /src/components/Form/Document
parent0f0e5f7408969fcc4473746919bb0e8aaa89947c (diff)
Added better support for saving client data
Diffstat (limited to 'src/components/Form/Document')
-rw-r--r--src/components/Form/Document/DocumentInfoForm.tsx19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/Form/Document/DocumentInfoForm.tsx b/src/components/Form/Document/DocumentInfoForm.tsx
index 6135b33..2d7dcd9 100644
--- a/src/components/Form/Document/DocumentInfoForm.tsx
+++ b/src/components/Form/Document/DocumentInfoForm.tsx
@@ -25,12 +25,31 @@ interface Props {
}
const DocumentInfoForm: React.FC<Props> = (props) => {
+ const dummyPerson: Person = {
+ Name: "",
+ Address: "",
+ Phone: "",
+ Email: "",
+
+ BillAddress: {
+ AddressLine: "",
+ City: "",
+ State: "",
+ PINCode: "",
+ Country: "India" // TODO: Get default from server
+ }
+ }
+
const [invoiceNumber, setInvoiceNumber] = useState<number>(props.invoiceNumber);
const [invoiceDate, setInvoiceDate] = useState(new Date());
+ const [selectedClient, setSelectedClient] = useState<Person>(dummyPerson);
+
return (
<div className={"DocumentInfoForm"}>
<SelectClientForm
savedPeople={props.savedPeople}
+ selectedClient={selectedClient}
+ setSelectedClient={setSelectedClient}
/>
<div className={"documentInfoChild"}>