add Cart model + add store fot save all methods
This commit is contained in:
@@ -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'}>
|
||||
|
||||
Reference in New Issue
Block a user