From c730f21c237dcec00fdfae09eeb41cacac3ad9e6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 6 Jun 2026 20:19:19 +0700 Subject: [PATCH] feat(spa): show total amount when order summary is collapsed and default to collapsed --- apps/spa/src/pages/CheckoutPage.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/apps/spa/src/pages/CheckoutPage.tsx b/apps/spa/src/pages/CheckoutPage.tsx index 5aab588..0bfbb0d 100644 --- a/apps/spa/src/pages/CheckoutPage.tsx +++ b/apps/spa/src/pages/CheckoutPage.tsx @@ -23,7 +23,7 @@ export default function CheckoutPage() { const [isFreeShipping, setIsFreeShipping] = useState(false) const [couponLoading, setCouponLoading] = useState(false) const [couponError, setCouponError] = useState('') - const [isSummaryExpanded, setIsSummaryExpanded] = useState(true) + const [isSummaryExpanded, setIsSummaryExpanded] = useState(false) const [activePromos, setActivePromos] = useState([]) const [customerPoints, setCustomerPoints] = useState(0) @@ -371,10 +371,17 @@ export default function CheckoutPage() {