/* * OpenBills - Self hosted browser app to generate and keep track of simple invoices * Version - 0 * Licensed under the MIT license - https://opensource.org/licenses/MIT * * Copyright (c) 2021 Vidhu Kant Sharma */ import React, { useState } from "react"; import DatePicker from "react-datepicker"; import "./../../../styles/datepicker.scss"; // custom datepicker css // import "react-datepicker/dist/react-datepicker.css"; import { Person } from "./../../../interfaces"; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faSync } from '@fortawesome/free-solid-svg-icons'; import "./../Form.scss"; import SelectClientForm from "./../People/SelectClientForm"; interface Props { savedPeople: Person[] invoiceNumber: number setInvoiceNumber: any } const DocumentInfoForm: React.FC = (props) => { const dummyPerson: Person = { Name: "", Address: "", Phone: "", Email: "", BillAddress: { AddressLine: "", City: "", State: "", PINCode: "", Country: "India" // TODO: Get default from server } } const [invoiceNumber, setInvoiceNumber] = useState(props.invoiceNumber); const [invoiceDate, setInvoiceDate] = useState(new Date()); const [selectedClient, setSelectedClient] = useState(dummyPerson); return (
); } export default DocumentInfoForm;