aboutsummaryrefslogtreecommitdiff
path: root/src/components/Display/DisplayItem.js
blob: 849bfc50ecb5d1e7c489104166e6354416d31f3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React from "react";
import "./Display.css";

const DisplayItem = (props) => {
  const itemNumber = props.itemNumber;
  const item = props.item;

  return (
    <tr>
      <td>{itemNumber}</td>
      <td className={"leftAlign"}>{item.Model}</td>
      <td className={item.Description === "" ? "leftAlign disabledBorder" : "leftAlign"}>{item.Description}</td>
      <td>{item.Quantity}</td>
      <td className={item.Discount === 0 ? "disabledBorder" : ""}>{item.Discount}</td>
      <td className={item.GST === props.defGSTValue ? "" : "warningBorder"}>{item.GST}</td>
      <td>{item.Price}</td>
    </tr>
  );
}

export default DisplayItem;