From 3997001c9815a60d3b5a19ef8f354232bc3f8050 Mon Sep 17 00:00:00 2001 From: SriHarshaDamarla Date: Thu, 7 May 2026 09:01:11 +0530 Subject: [PATCH] add bill summary section --- src/components/App.tsx | 3 +++ src/components/BillSummary.tsx | 37 ++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 src/components/BillSummary.tsx diff --git a/src/components/App.tsx b/src/components/App.tsx index 8384a30..a810806 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1,5 +1,6 @@ import { useBill } from "../hooks"; import { BillItemRow } from "./BillItemRow"; +import { BillSummary } from "./BillSummary"; import { ItemForm } from "./ItemForm"; export default function App() { @@ -31,6 +32,8 @@ export default function App() { )} + + {computedBill.items.length > 0 && (