From 5f09610e5b83d7a05aae774e61d277cf91b44e4e Mon Sep 17 00:00:00 2001 From: Dejan Date: Sun, 27 Oct 2024 18:27:18 +0100 Subject: [PATCH] - Fixed issue with add grocery item form not closing on close button click --- components/pages/grocery/GroceryList.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/components/pages/grocery/GroceryList.tsx b/components/pages/grocery/GroceryList.tsx index ce4e882..bca41ee 100644 --- a/components/pages/grocery/GroceryList.tsx +++ b/components/pages/grocery/GroceryList.tsx @@ -228,15 +228,18 @@ const GroceryList = () => { {isAddingGrocery && ( - + + setIsAddingGrocery(false) + }} + /> + )} {/* Render Approved Groceries Grouped by Category */}