diff options
Diffstat (limited to 'src/components/tables/item-table.js')
-rw-r--r-- | src/components/tables/item-table.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/tables/item-table.js b/src/components/tables/item-table.js index c1115c1..e42b272 100644 --- a/src/components/tables/item-table.js +++ b/src/components/tables/item-table.js @@ -21,6 +21,10 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faPencil, faTrashCan } from '@fortawesome/free-solid-svg-icons' const ItemTable = (props) => { + const handleEdit = (i) => { + alert("editing coming soon") + } + const handleDelete = (i) => { // TODO: add confirmation prompt deleteItem(i.Id, handleDelSuccess, handleDelFail); @@ -65,7 +69,7 @@ const ItemTable = (props) => { <td className={i.MinQuantity === 0.0 ? "empty" : ""}>{i.MinQuantity}</td> <td className={i.MaxQuantity === 0.0 ? "empty" : ""}>{i.MaxQuantity}</td> <td className={"buttons"}> - <FontAwesomeIcon icon={faPencil} onClick={() => alert("editing coming soon")}/> + <FontAwesomeIcon icon={faPencil} onClick={() => handleEdit(i)}/> <FontAwesomeIcon icon={faTrashCan} onClick={() => handleDelete(i)}/> </td> </tr> |