From cc5dd44de3d65e3c2cf189f1516d97c3641549aa Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 27 Sep 2022 15:07:34 +0530 Subject: created very basic clients list --- src/components/editors/address-editor.js | 1 - src/components/editors/client-editor.js | 2 +- src/components/editors/contact-editor.js | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/components/editors') diff --git a/src/components/editors/address-editor.js b/src/components/editors/address-editor.js index 3675f26..bd81b6f 100644 --- a/src/components/editors/address-editor.js +++ b/src/components/editors/address-editor.js @@ -18,7 +18,6 @@ import { Address } from './../../classes/client'; import './scss/address-editor.scss'; -import { useState, useEffect } from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faXmark } from '@fortawesome/free-solid-svg-icons'; diff --git a/src/components/editors/client-editor.js b/src/components/editors/client-editor.js index f4535c2..bd018f4 100644 --- a/src/components/editors/client-editor.js +++ b/src/components/editors/client-editor.js @@ -66,7 +66,7 @@ const ClientEditor = (props) => { setGSTIN("") setContact(new Contact()); setBillingAddress(new Address()); - setShippingAddresses([new Address()]); + setShippingAddresses([]); setShipToBillingAddress(true); } diff --git a/src/components/editors/contact-editor.js b/src/components/editors/contact-editor.js index 3c9a1f9..f689b8c 100644 --- a/src/components/editors/contact-editor.js +++ b/src/components/editors/contact-editor.js @@ -18,8 +18,6 @@ import { Contact } from './../../classes/client'; import './scss/contact-editor.scss'; -import { useState, useEffect } from 'react'; - const ContactEditor = (props) => { const handleInput = (field, event) => { const c = new Contact(); -- cgit v1.2.3