From 060d935a47b244656e53c880cc9e792fd5841982 Mon Sep 17 00:00:00 2001
From: MikunoNaka <bokuwakanojogahoshii@yahoo.com>
Date: Sun, 2 May 2021 19:51:35 +0530
Subject: fixed errors and added new incomplete form to register a new client

---
 src/components/Form/Items/AddNewItemForm.js | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

(limited to 'src/components/Form/Items')

diff --git a/src/components/Form/Items/AddNewItemForm.js b/src/components/Form/Items/AddNewItemForm.js
index 6bce2ab..4eaea7d 100644
--- a/src/components/Form/Items/AddNewItemForm.js
+++ b/src/components/Form/Items/AddNewItemForm.js
@@ -47,6 +47,8 @@ const AddNewItemForm = (props) => {
         setItemHSNValue(hsn);
         setItemGSTValue(gst);
         break;
+      } else if (itemName === registerItemPrompt) {
+        props.registerItemFormVisibility(true);
       }
     }
   }
@@ -65,6 +67,7 @@ const AddNewItemForm = (props) => {
     <div className={"formContainer"}>
       <form className={"threePaneForm"} onSubmit={
         (event) => {
+          alert("submit")
           event.preventDefault();
           const newInvoiceItem = {
             "Model": itemNameValue,
@@ -103,7 +106,7 @@ const AddNewItemForm = (props) => {
           </label>
   
           <label>
-            Description: 
+            Description:
               <input className={"wideInputBox"} type="text" value={itemDescValue} 
                 onChange={
                   (event) => {
@@ -179,7 +182,12 @@ const AddNewItemForm = (props) => {
         <div className={"smallPane"}>
           <input type="button" 
             value="Register New Item" 
-            onClick={() => props.registerFormVisibility(true)}
+            onClick={() => props.registerItemFormVisibility(true)}
+          />
+
+          <input type="button" 
+            value="Register New Person" 
+            onClick={() => props.registerPersonFormVisibility(true)}
           />
 
           <input type="button" value="Placeholder1" />
-- 
cgit v1.2.3