diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-17 19:04:55 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-17 19:04:55 +0530 |
commit | ee77e57189a6b0375e840b386754973a376dc089 (patch) | |
tree | eb5868219a01c68acb6ae996d99629020ef00e89 /src/components/Display/ItemsDisplay.js | |
parent | 444a8147f59df78ebf14222edcebf944226b533e (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.js | 34 |
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; |