From ee77e57189a6b0375e840b386754973a376dc089 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sat, 17 Apr 2021 19:04:55 +0530 Subject: added a way to see the total cost and number of items in ItemsDisplay --- src/components/BillingPage.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/components/BillingPage.js') diff --git a/src/components/BillingPage.js b/src/components/BillingPage.js index bb1330f..698f095 100644 --- a/src/components/BillingPage.js +++ b/src/components/BillingPage.js @@ -1,27 +1,36 @@ import React, { useState } from "react"; import AddNewItemForm from "./Form/AddNewItemForm"; import ItemsDisplay from "./Display/ItemsDisplay"; +// import SummaryDisplay from "./Display/SummaryDisplay"; const sampleData = [ { "Model": "Kisan Chair", "Description": "Very good chair", "Price": 10000, - "Discount": 0 }, { "Model": "Supreme Chair", "Description": "Even better chair", "Price": "2134983", - "Discount": 0 }, { "Model": "Action Houseware", "Description": "Not a chair", "Price": 69, - "Discount": 0 + }, { + "Model": "Coirfit Mattress", + "Description": "Not a chair (neither houseware)", + "Price": 19, + }, { + "Model": "AVRO Chair", + "Description": "Formerly AVON lol", + "Price": 291, + }, { + "Model": "Mystery Item", + "Description": "hehe heheheheheh", + "Price": 1212312, } ]; - const BillingPage = () => { // to be handled by backend const defGSTValue = 18; @@ -36,7 +45,6 @@ const BillingPage = () => { return (
-
); -- cgit v1.2.3