diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-27 17:34:12 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-27 17:34:12 +0530 |
commit | 072e53f0b2eb8fa14c0aa49286193784c73257cb (patch) | |
tree | eaf151ed3c248a5af730cbf5c0b950794ccace1f /src/components/editors/item-editor.js | |
parent | 24bb92944849ac2ddf2f777d52c23a150eedffe8 (diff) |
added a brands management page
Diffstat (limited to 'src/components/editors/item-editor.js')
-rw-r--r-- | src/components/editors/item-editor.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/editors/item-editor.js b/src/components/editors/item-editor.js index 19fa7e2..6c5e976 100644 --- a/src/components/editors/item-editor.js +++ b/src/components/editors/item-editor.js @@ -154,6 +154,7 @@ const ItemEditor = (props) => { value={maxQty} onChange={(e) => validateFloatInput(e, setMaxQty)} /> </label> + {savedBrands && savedBrands.length > 0 && <label> Brand: <select value={brand.Id ? brand.Id : ""} onChange={handleBrandSelect}> @@ -163,6 +164,7 @@ const ItemEditor = (props) => { {savedBrands.map(i => <option key={i.Id} value={i.Id}>{i.Name}</option>)} </select> </label> + } <span className={"buttons"}> <input type="button" value="Clear" onClick={clearAll}/> |