/* * OpenBills - Self hosted browser app to generate and keep track of simple invoices * Version - 0 * Licensed under the MIT license - https://opensource.org/licenses/MIT * * Copyright (c) 2021 Vidhu Kant Sharma */ // TODO: Code isn't tested properly // I'd be surprised if it < 10 bugs // TODO: Implement override protection import React, { useState } from "react"; // import axios from "axios"; import "./Form.scss"; const RegisterItemForm = (props) => { const [newItemNameValue, setNewItemNameValue] = useState(""); const [newItemDescValue, setNewItemDescValue] = useState(""); const [newItemPriceValue, setNewItemPriceValue] = useState(0.00); const [newItemHSNValue, setNewItemHSNValue] = useState(""); const [newItemGSTValue, setNewItemGSTValue] = useState(props.defGSTValue); // const [newItemBrandValue, setNewItemBrandValue] = useState(""); // const [newItemTypeValue, setNewItemTypeValue] = useState(""); const hideSelf = () => props.setVisibility(false); const closeOnBGClicked = (event) => event.target.className === "floatingMenuBG" && hideSelf(); return (