mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 08:24:55 +00:00
- Fixed issue with add grocery item form not closing on close button click
This commit is contained in:
@ -228,6 +228,7 @@ const GroceryList = () => {
|
|||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
{isAddingGrocery && (
|
{isAddingGrocery && (
|
||||||
|
<View style={{ marginTop: 8 }}>
|
||||||
<EditGroceryItem
|
<EditGroceryItem
|
||||||
editGrocery={{
|
editGrocery={{
|
||||||
title: title,
|
title: title,
|
||||||
@ -235,8 +236,10 @@ const GroceryList = () => {
|
|||||||
category: category,
|
category: category,
|
||||||
setTitle: setTitle,
|
setTitle: setTitle,
|
||||||
setSubmit: setSubmitted,
|
setSubmit: setSubmitted,
|
||||||
|
closeEdit: () => setIsAddingGrocery(false)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Render Approved Groceries Grouped by Category */}
|
{/* Render Approved Groceries Grouped by Category */}
|
||||||
|
|||||||
Reference in New Issue
Block a user