add Cart model + add store fot save all methods

This commit is contained in:
hamid zarghami
2025-12-18 11:58:02 +03:30
parent 510d1718f4
commit ae35774e1f
16 changed files with 347 additions and 107 deletions
+1 -2
View File
@@ -13,7 +13,6 @@ const CartIndex = () => {
const { t } = useTranslation('parallels', { keyPrefix: 'Cart' });
const router = useRouter();
const { clearCart } = useCart();
const [description, setDescription] = React.useState('');
const [showClearConfirm, setShowClearConfirm] = React.useState(false);
const handleClearCart = (e: React.MouseEvent) => {
@@ -49,7 +48,7 @@ const CartIndex = () => {
<div className='flex overflow-y-auto noscrollbar flex-col h-full pt-4 gap-4 pb-24' dir='rtl'>
<CartItemsList />
<CartSummary description={description} onDescriptionChange={setDescription} />
<CartSummary />
</div>
<div className={showClearConfirm ? 'fixed inset-0 z-1001' : 'pointer-events-none fixed inset-0 z-1001'}>