add: links to cart, address and checkout page

This commit is contained in:
Mahyar Khanbolooki
2025-08-12 03:56:14 +03:30
parent b4451d2495
commit 00c491aec5
3 changed files with 32 additions and 14 deletions
+7 -3
View File
@@ -5,6 +5,7 @@ import { useReceiptStore } from '@/zustand/receiptStore';
import { motion } from 'framer-motion';
import { ArrowLeft, Trash } from 'iconsax-react';
import { PlusIcon, MinusIcon } from 'lucide-react';
import Link from 'next/link';
import { useRouter } from 'next/navigation';
import React from 'react'
import { useTranslation } from 'react-i18next';
@@ -114,9 +115,12 @@ const CartIndex = ({ }: Props) => {
<div className='text-xs'>{t('SumOfItemsLabel')}</div>
<div className="text-sm font-medium">{t('SumOfItemsValue').replace('{price}', '560.000')}</div>
</div>
<Button>
{t('ButtonCheckout')}
</Button>
<Link
href={'order/checkout/0'}>
<Button>
{t('ButtonCheckout')}
</Button>
</Link>
</div>
</div>