diff options
Diffstat (limited to 'src/components/Form/Items/AddNewItemForm.js')
| -rw-r--r-- | src/components/Form/Items/AddNewItemForm.js | 12 | 
1 files changed, 10 insertions, 2 deletions
| 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" /> |