From e2abc12d59a8aed65ea155ea6087e12f322cdcb5 Mon Sep 17 00:00:00 2001 From: Blessy Louis <112788477+BlessyLouis@users.noreply.github.com> Date: Tue, 30 Jun 2026 14:25:51 +0530 Subject: [PATCH] Refactor cart summary display in App component Updated DataTable to use results.items and modified cart summary display to include subtotal and cart offer details. --- src/App.jsx | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 7430c07..7ed3b37 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -25,6 +25,11 @@ const RULES_COLUMNS = [ render: (v, row) => row.type === 'percentage' ? `${v}% off` : `Rs.${v} off`, }, { key: 'stackable', label: 'Stackable', render: (v) => (v ? 'Yes' : 'No') }, + { + key: 'minCartValue', + label: 'Min Cart Value', + render: (v) => v ? `Rs.${v}` : '—' + } ] const CART_COLUMNS = [ @@ -217,11 +222,36 @@ export default function App() { {results && (