diff options
Diffstat (limited to 'src/components/Form/Document/DocumentInfoForm.tsx')
-rw-r--r-- | src/components/Form/Document/DocumentInfoForm.tsx | 19 |
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"}> |