mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 00:24:53 +00:00
- Fixed issue with parents not being able to approve groceries
This commit is contained in:
@ -109,12 +109,12 @@ const GroceryItem = ({
|
||||
|
||||
{!item.approved ? (
|
||||
<View row centerV>
|
||||
{isParent || isCaregiver && (
|
||||
{(isParent || isCaregiver) && (
|
||||
<>
|
||||
<AntDesign
|
||||
name="check"
|
||||
size={24}
|
||||
style={{ color: "green", marginRight: 15 }}
|
||||
style={{ color: "blue", marginRight: 15 }}
|
||||
onPress={() =>
|
||||
handleItemApproved(item.id, { approved: true })
|
||||
}
|
||||
@ -140,10 +140,8 @@ const GroceryItem = ({
|
||||
name="close"
|
||||
size={24}
|
||||
style={{ color: "grey", marginRight: 10 }}
|
||||
onPress={() => {
|
||||
handleItemApproved(item.id, { approved: false });
|
||||
deleteGrocery(item.id);
|
||||
}}/>
|
||||
onPress={() => deleteGrocery(item.id)}
|
||||
/>
|
||||
}
|
||||
<Checkbox
|
||||
value={item.bought}
|
||||
|
||||
Reference in New Issue
Block a user