/* * OpenBills - Self hosted browser app to generate and keep track of simple invoices * Version - 0 * Licensed under the MIT license - https://opensource.org/licenses/MIT * * Copyright (c) 2021 Vidhu Kant Sharma */ import React from "react"; import { Item } from "./../../interfaces"; import "./Display.scss"; import DisplayItem from "./DisplayItem"; // import {SummaryDisplayTR} from "./SummaryDisplay"; interface Props { items: Item[] defGSTValue: number } const ItemsDisplay: React.FC = (props) => { const items = props.items; // TODO: remove mutability let itemNumber = 0; return ( {items.map( (item) => { itemNumber++ return ( ); } )}
S. Num Item Description HSN Quantity Unit Price Discount sgst cgst igst Price
); // this goes right before // } export default ItemsDisplay;