diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-17 21:06:17 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-17 21:06:17 +0530 |
commit | 4e880f6efe86c0b7e86e587e08eeee0f594417d5 (patch) | |
tree | 96eae2c903095550e3aa790dafd57117beb0d4cb /src/components/Display/DisplayItem.js | |
parent | ee77e57189a6b0375e840b386754973a376dc089 (diff) |
color coded ItemsDisplay
Diffstat (limited to 'src/components/Display/DisplayItem.js')
-rw-r--r-- | src/components/Display/DisplayItem.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/Display/DisplayItem.js b/src/components/Display/DisplayItem.js index 768be2f..849bfc5 100644 --- a/src/components/Display/DisplayItem.js +++ b/src/components/Display/DisplayItem.js @@ -9,11 +9,11 @@ const DisplayItem = (props) => { <tr> <td>{itemNumber}</td> <td className={"leftAlign"}>{item.Model}</td> - <td className={"leftAlign"}>{item.Description}</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> - <td>{item.Discount}</td> - <td>{item.GST}</td> </tr> ); } |