aboutsummaryrefslogtreecommitdiff
path: root/src/components/Form/People
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-09-13 17:40:13 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-09-13 17:40:13 +0530
commit794b16479649b1a7d4eac6f7c5f5bda7f97ee406 (patch)
tree4884d0583ddf59a19e15314f31287dbf1ba6cfa1 /src/components/Form/People
parentc1600045a243e3547fe589bfc7e474d2decaea4c (diff)
Added dummy objects to use as place holdersHEADmain
Diffstat (limited to 'src/components/Form/People')
-rw-r--r--src/components/Form/People/RegisterPersonForm.tsx10
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);