Create hook useCart

This commit is contained in:
hamid zarghami
2025-12-01 11:44:58 +03:30
parent b4b900cfc1
commit b536e0dd2d
4 changed files with 106 additions and 2 deletions
+1 -1
View File
@@ -12,8 +12,8 @@ interface MenuItemProps {
}
const MenuItem = ({ food }: MenuItemProps) => {
const quantity = useReceiptStore(state => state.items[food.id]?.quantity || 0);
const quantity = useReceiptStore(state => state.items[food.id]?.quantity || 0);
const increment = useReceiptStore(state => state.increment);
const decrement = useReceiptStore(state => state.decrement);