From 2efc453d20aca682ac3f34af8687d4bb28642195 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sat, 17 Apr 2021 13:12:11 +0530 Subject: now data is properly being passed from AddNewItemForm to ItemsDisplay which properly renders it --- src/components/Display/ItemsDisplay.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'src/components/Display') diff --git a/src/components/Display/ItemsDisplay.js b/src/components/Display/ItemsDisplay.js index 9507e5b..766d16f 100644 --- a/src/components/Display/ItemsDisplay.js +++ b/src/components/Display/ItemsDisplay.js @@ -7,13 +7,20 @@ const ItemsDisplay = (props) => { return (
    - { - items.map( - (item) => { - return
  1. {item}
  2. - } - ) - } + {items.map( (item) => { + return ( +
  3. +
      +
    • {item.Model}
    • +
    • {item.Description}
    • +
    • {item.Quantity}
    • +
    • {item.Price}
    • +
    • {item.Discount}
    • +
    • {item.GST}
    • +
    +
  4. + ); + })}
); -- cgit v1.2.3