diff options
Diffstat (limited to 'src/components/Form/People/RegisterPersonForm.tsx')
-rw-r--r-- | src/components/Form/People/RegisterPersonForm.tsx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/components/Form/People/RegisterPersonForm.tsx b/src/components/Form/People/RegisterPersonForm.tsx index 9c8752d..b702ef9 100644 --- a/src/components/Form/People/RegisterPersonForm.tsx +++ b/src/components/Form/People/RegisterPersonForm.tsx @@ -9,6 +9,7 @@ import React, { useState } from "react"; import NewAddressPane from "./../Address/NewAddressPane" import { Person, Address } from "./../../../Interfaces/interfaces" +import { DummyAddress } from "../../../Interfaces/dummies"; import axios from "axios"; import "./../Form.scss"; @@ -22,15 +23,10 @@ const RegisterPersonForm: React.FC<props> = (props) => { const [newPersonPhone, setNewPersonPhone] = useState<string>(""); const [newPersonEmail, setNewPersonEmail] = useState<string>(""); + const [newPersonBillAddress, setNewPersonBillAddress] = useState<Address>(DummyAddress); + const [shipToBillAddress, setShipToBillAddress] = useState<boolean>(true); - const [newPersonBillAddress, setNewPersonBillAddress] = useState<Address>({ - AddressLine: "", - City: "", - State: "", - PINCode: "", - Country: "" - }) const hideSelf = () => props.setVisibility(false); |