- Fixed issue with add grocery item form not closing on close button click

This commit is contained in:
Dejan
2024-10-27 18:27:18 +01:00
parent e863b0c38e
commit 5f09610e5b

View File

@ -228,6 +228,7 @@ const GroceryList = () => {
</View>
</View>
{isAddingGrocery && (
<View style={{ marginTop: 8 }}>
<EditGroceryItem
editGrocery={{
title: title,
@ -235,8 +236,10 @@ const GroceryList = () => {
category: category,
setTitle: setTitle,
setSubmit: setSubmitted,
closeEdit: () => setIsAddingGrocery(false)
}}
/>
</View>
)}
{/* Render Approved Groceries Grouped by Category */}