diff --git a/src/components/listview/MenuItem.tsx b/src/components/listview/MenuItem.tsx index 9bb6182..c6569bc 100644 --- a/src/components/listview/MenuItem.tsx +++ b/src/components/listview/MenuItem.tsx @@ -6,7 +6,7 @@ import Image from "next/image"; import PlusIcon from "@/components/icons/PlusIcon"; import MinusIcon from "@/components/icons/MinusIcon"; import { useReceiptStore } from "@/zustand/receiptStore"; - +import { motion } from "framer-motion"; interface MenuItemProps { food: { id: number @@ -23,7 +23,7 @@ const MenuItem = ({ food }: MenuItemProps) => { const decrement = useReceiptStore(state => state.decrement); return ( -
+
{ width={100} alt="Food image" /> -
+
{food.name}
@@ -40,7 +40,10 @@ const MenuItem = ({ food }: MenuItemProps) => {
{food.price} T -
+ {quantity <= 0 ? ( -
{quantity}
+ + {quantity} + + + )} -
+
diff --git a/src/components/listview/MenuItemRenderer.tsx b/src/components/listview/MenuItemRenderer.tsx index e1c62e0..88dbd2f 100644 --- a/src/components/listview/MenuItemRenderer.tsx +++ b/src/components/listview/MenuItemRenderer.tsx @@ -8,8 +8,11 @@ function MenuItemRendererComponent({ children, ...rest }: Props) { return (
+ className={`${rest.className} transition-all duration-200 ease-out w-full min-h-36 bg-white rounded-3xl px-4 flex items-center justify-between gap-4`} + style={{ + boxShadow: '0px 2px 16px 0px #00000014' + }}> + {children}
);