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/Display/ItemsDisplay.js | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) (limited to 'src/components/Display/ItemsDisplay.js') 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) => { ); } )} - - ) - - - /*return ( -
-
-
    -
  • S. Num.
  • -
  • Name
  • -
  • Description
  • -
  • Quantity
  • -
  • Price
  • -
  • Discount
  • -
  • GST
  • -
-
-
- {items.map( - (item) => { - itemNumber++ - return ( - - ); - } - )} -
- -
- );*/ + + + ); } export default ItemsDisplay; -- cgit v1.2.3