From 794b16479649b1a7d4eac6f7c5f5bda7f97ee406 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Mon, 13 Sep 2021 17:40:13 +0530 Subject: Added dummy objects to use as place holders --- src/components/Form/People/RegisterPersonForm.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/components/Form/People/RegisterPersonForm.tsx') 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) => { const [newPersonPhone, setNewPersonPhone] = useState(""); const [newPersonEmail, setNewPersonEmail] = useState(""); + const [newPersonBillAddress, setNewPersonBillAddress] = useState
(DummyAddress); + const [shipToBillAddress, setShipToBillAddress] = useState(true); - const [newPersonBillAddress, setNewPersonBillAddress] = useState
({ - AddressLine: "", - City: "", - State: "", - PINCode: "", - Country: "" - }) const hideSelf = () => props.setVisibility(false); -- cgit v1.2.3