blob: 766d16f435373822e3258176a24b8b0ba0638ea9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import React from "react";
import "./Display.css";
const ItemsDisplay = (props) => {
const items = props.items;
return (
<div className={"ItemsDisplay"}>
<ol>
{items.map( (item) => {
return (
<li>
<ul>
<li key={item.Model}>{item.Model}</li>
<li key={item.Description}>{item.Description}</li>
<li key={item.Quantity}>{item.Quantity}</li>
<li key={item.Price}>{item.Price}</li>
<li key={item.Discount}>{item.Discount}</li>
<li key={item.GST}>{item.GST}</li>
</ul>
</li>
);
})}
</ol>
</div>
);
}
export default ItemsDisplay;
|