From 354e89c8d131e97210b65b5b7d0e905c2e73c6c1 Mon Sep 17 00:00:00 2001 From: Thanh Quy - wolf <524H0124@student.tdtu.edu.vn> Date: Tue, 24 Mar 2026 07:51:53 +0700 Subject: [PATCH] Payment app --- app/payment/page.tsx | 22 +++++++++++++++++----- components/CartFab.tsx | 2 +- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/app/payment/page.tsx b/app/payment/page.tsx index 09d4233..ae27fb5 100644 --- a/app/payment/page.tsx +++ b/app/payment/page.tsx @@ -1,5 +1,6 @@ "use client"; +import Link from 'next/link'; import { useCart } from "@/lib/cart-context"; const formatPrice = (value: number) => @@ -30,7 +31,7 @@ export default function PaymentPage() { ) : (
| Tên sản phẩm | @@ -47,7 +48,7 @@ export default function PaymentPage() {{formatPrice(item.price)} | -+ |
{item.description} |
@@ -65,6 +66,7 @@ export default function PaymentPage() { value={item.quantity} onChange={(e) => setQuantity(item.id, Number(e.target.value))} className="w-16 h-8 text-center rounded-lg border border-(--color-border) bg-transparent" + title='Nhập số lượng' /> |
|---|