From 708862c94bd119ca7e86540fbc68595a6256c9e3 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 26 Sep 2022 23:57:18 +0530 Subject: created very basic client editor --- src/components/tables/item-table.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/components/tables/item-table.js') 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) => { {i.MinQuantity} {i.MaxQuantity} - alert("editing coming soon")}/> + handleEdit(i)}/> handleDelete(i)}/> -- cgit v1.2.3