diff --git a/src/app/[name]/cart/page.tsx b/src/app/[name]/cart/page.tsx index faed11d..c73c94f 100644 --- a/src/app/[name]/cart/page.tsx +++ b/src/app/[name]/cart/page.tsx @@ -4,25 +4,41 @@ import Button from '@/components/button/PrimaryButton'; import { ScrollArea } from '@/components/ui/scrollarea'; import { useReceiptStore } from '@/zustand/receiptStore'; import { motion } from 'framer-motion'; -import { Trash } from 'iconsax-react'; +import { ArrowLeft, Trash } from 'iconsax-react'; import { PlusIcon, MinusIcon } from 'lucide-react'; +import { useRouter } from 'next/navigation'; import React from 'react' type Props = object const CartIndex = ({ }: Props) => { + const router = useRouter(); const quantity = useReceiptStore(state => state.items[0]?.quantity || 0); const increment = useReceiptStore(state => state.increment); const decrement = useReceiptStore(state => state.decrement); return ( -