aboutsummaryrefslogtreecommitdiff
path: root/src/components/Display/ItemsDisplay.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/Display/ItemsDisplay.js
parent444a8147f59df78ebf14222edcebf944226b533e (diff)
added a way to see the total cost and number of items in ItemsDisplay
Diffstat (limited to 'src/components/Display/ItemsDisplay.js')
-rw-r--r--src/components/Display/ItemsDisplay.js34
1 files changed, 4 insertions, 30 deletions
diff --git a/src/components/Display/ItemsDisplay.js b/src/components/Display/ItemsDisplay.js
index 7026530..0545ef0 100644
--- a/src/components/Display/ItemsDisplay.js
+++ b/src/components/Display/ItemsDisplay.js
@@ -1,6 +1,7 @@
import React from "react";
import "./Display.css";
import DisplayItem from "./DisplayItem";
+import SummaryDisplayTR from "./SummaryDisplay";
const ItemsDisplay = (props) => {
const items = props.items;
@@ -27,37 +28,10 @@ const ItemsDisplay = (props) => {
);
}
)}
- </table>
- )
-
-
- /*return (
- <div className={"ItemsDisplay"}>
- <div className={"legend"}>
- <ul>
- <li className={"num"}>S. Num.</li>
- <li className={"text"}>Name</li>
- <li className={"text"}>Description</li>
- <li className={"num"}>Quantity</li>
- <li className={"num"}>Price</li>
- <li className={"num"}>Discount</li>
- <li className={"num"}>GST</li>
- </ul>
- </div>
- <div className={"items"}>
- {items.map(
- (item) => {
- itemNumber++
- return (
- <DisplayItem itemNumber={itemNumber} item={item}/>
- );
- }
- )}
- </div>
-
- </div>
- );*/
+ <SummaryDisplayTR items={props.items}/>
+ </table>
+ );
}
export default ItemsDisplay;