diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-17 16:18:12 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-17 16:18:12 +0530 |
commit | 444a8147f59df78ebf14222edcebf944226b533e (patch) | |
tree | 88f72d041c3b75b5c3d7d6f48fffc2b943379809 /src/components/Display/DisplayItem.js | |
parent | 2efc453d20aca682ac3f34af8687d4bb28642195 (diff) |
designed DisplayItem and ItemsDisplay so it now renders a pretty table
Diffstat (limited to 'src/components/Display/DisplayItem.js')
-rw-r--r-- | src/components/Display/DisplayItem.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/components/Display/DisplayItem.js b/src/components/Display/DisplayItem.js new file mode 100644 index 0000000..dae87a3 --- /dev/null +++ b/src/components/Display/DisplayItem.js @@ -0,0 +1,40 @@ +import React from "react"; +import "./Display.css"; + +const DisplayItem = (props) => { + const itemNumber = props.itemNumber; + const item = props.item; + // const ID = props.ID; + // const name = props.Model; + // const desc = props.Description; + // const QTY = props.Quantity; + // const price = props.Price; + // const discount = props.Discount; + // const GST = props.GST; + + return ( + <tr> + <td>{itemNumber}</td> + <td className={"leftAlign"}>{item.Model}</td> + <td className={"leftAlign"}>{item.Description}</td> + <td>{item.Quantity}</td> + <td>{item.Price}</td> + <td>{item.Discount}</td> + <td>{item.GST}</td> + </tr> + ); + /*return ( + <ul className={"DisplayItem"}> + <li className={"num"}>{itemNumber}</li> + + <li className={"text"}>{item.Model}</li> + <li className={"text"}>{item.Description}</li> + <li className={"num"}>{item.Quantity}</li> + <li className={"num"}>{item.Price}</li> + <li className={"num"}>{item.Discount}</li> + <li className={"num"}>{item.GST}</li> + </ul> + );*/ +} + +export default DisplayItem; |