aboutsummaryrefslogtreecommitdiff
path: root/src/components/Display/ItemsDisplay.js
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-05-03 22:08:22 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-05-03 22:08:22 +0530
commit4df6eaa913737427ddec2561c0ee8c9235f0c95f (patch)
tree552824b157bafb1922a9cf924e47bed729dd8591 /src/components/Display/ItemsDisplay.js
parent76b7c744eb381348d9557166b0b811533c7ae337 (diff)
fixed warnings occouring due to abscence of <tbody>
Diffstat (limited to 'src/components/Display/ItemsDisplay.js')
-rw-r--r--src/components/Display/ItemsDisplay.js40
1 files changed, 21 insertions, 19 deletions
diff --git a/src/components/Display/ItemsDisplay.js b/src/components/Display/ItemsDisplay.js
index 0a349f2..7afc341 100644
--- a/src/components/Display/ItemsDisplay.js
+++ b/src/components/Display/ItemsDisplay.js
@@ -19,27 +19,29 @@ const ItemsDisplay = (props) => {
return (
<table className={"ItemsDisplay"}>
- <tr className="legend">
- <th>S. Num</th>
- <th className={"leftAlign"}>Item</th>
- <th className={"leftAlign"}>Description</th>
- <th>Quantity(NOS)</th>
- <th>Discount(%)</th>
- <th>GST(%)</th>
- <th>HSN</th>
- <th>Price</th>
- </tr>
+ <tbody>
+ <tr className="legend">
+ <th>S. Num</th>
+ <th className={"leftAlign"}>Item</th>
+ <th className={"leftAlign"}>Description</th>
+ <th>Quantity(NOS)</th>
+ <th>Discount(%)</th>
+ <th>GST(%)</th>
+ <th>HSN</th>
+ <th>Price</th>
+ </tr>
- {items.map(
- (item) => {
- itemNumber++
- return (
- <DisplayItem itemNumber={itemNumber} item={item} defGSTValue={props.defGSTValue}/>
- );
- }
- )}
+ {items.map(
+ (item) => {
+ itemNumber++
+ return (
+ <DisplayItem itemNumber={itemNumber} item={item} defGSTValue={props.defGSTValue}/>
+ );
+ }
+ )}
- <SummaryDisplayTR items={props.items}/>
+ <SummaryDisplayTR items={props.items}/>
+ </tbody>
</table>
);
}