From 6f625bb9741b90ea5272914bf7958eed0f42e885 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sun, 29 Aug 2021 11:40:15 +0530 Subject: Fixed SummaryDisplayTR --- src/components/Display/ItemsDisplay.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/components/Display/ItemsDisplay.tsx') diff --git a/src/components/Display/ItemsDisplay.tsx b/src/components/Display/ItemsDisplay.tsx index 78c5094..79eed40 100644 --- a/src/components/Display/ItemsDisplay.tsx +++ b/src/components/Display/ItemsDisplay.tsx @@ -10,7 +10,7 @@ import React from "react"; import { Item } from "./../../interfaces"; import "./Display.scss"; import DisplayItem from "./DisplayItem"; -// import {SummaryDisplayTR} from "./SummaryDisplay"; +import {SummaryDisplayTR} from "./SummaryDisplay"; interface Props { items: Item[] @@ -19,9 +19,6 @@ interface Props { const ItemsDisplay: React.FC = (props) => { const items = props.items; - // TODO: remove mutability - let itemNumber = 0; - return ( @@ -38,19 +35,17 @@ const ItemsDisplay: React.FC = (props) => { {items.map( - (item) => { - itemNumber++ + (item, index) => { return ( - + ); } )} +
); - // this goes right before - // } export default ItemsDisplay; -- cgit v1.2.3