aboutsummaryrefslogtreecommitdiff
path: root/src/components/BillingPage.js
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-04-17 19:04:55 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-04-17 19:04:55 +0530
commitee77e57189a6b0375e840b386754973a376dc089 (patch)
treeeb5868219a01c68acb6ae996d99629020ef00e89 /src/components/BillingPage.js
parent444a8147f59df78ebf14222edcebf944226b533e (diff)
added a way to see the total cost and number of items in ItemsDisplay
Diffstat (limited to 'src/components/BillingPage.js')
-rw-r--r--src/components/BillingPage.js18
1 files changed, 13 insertions, 5 deletions
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 (
<div>
<AddNewItemForm savedItems={sampleData} addItem={getItems} defGSTValue={defGSTValue}/>
-
<ItemsDisplay items={items}/>
</div>
);