diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-05-03 22:08:22 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-05-03 22:08:22 +0530 |
commit | 4df6eaa913737427ddec2561c0ee8c9235f0c95f (patch) | |
tree | 552824b157bafb1922a9cf924e47bed729dd8591 /src/components/Display/SummaryDisplay.js | |
parent | 76b7c744eb381348d9557166b0b811533c7ae337 (diff) |
fixed warnings occouring due to abscence of <tbody>
Diffstat (limited to 'src/components/Display/SummaryDisplay.js')
-rw-r--r-- | src/components/Display/SummaryDisplay.js | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/src/components/Display/SummaryDisplay.js b/src/components/Display/SummaryDisplay.js index a44e036..2f65e79 100644 --- a/src/components/Display/SummaryDisplay.js +++ b/src/components/Display/SummaryDisplay.js @@ -79,36 +79,38 @@ const SummaryDisplay = (props) => { <div className={"SummaryDisplay"}> <h1>Summary</h1> <table> - <tr> - <td>Base Total</td> - <td>{summary.TotalRawPrice}</td> - </tr> - - {summary.TotalDiscountPrice !== 0.00 && + <tbody> <tr> - <td>After Discount</td> - <td>{summary.TotalPriceAfterDiscount}</td> - <td>(-{summary.TotalDiscountPrice})</td> + <td>Base Total</td> + <td>{summary.TotalRawPrice}</td> </tr> - } - <tr> - <td>After Tax</td> - <td>{summary.TotalPriceAfterTax}</td> - <td>(+{summary.TotalTaxAmount})</td> - </tr> + {summary.TotalDiscountPrice !== 0.00 && + <tr> + <td>After Discount</td> + <td>{summary.TotalPriceAfterDiscount}</td> + <td>(-{summary.TotalDiscountPrice})</td> + </tr> + } - {summary.RoundedOff !== 0.00 && <tr> - <td>Rounded Off</td> - <td>{summary.RoundedOff}</td> + <td>After Tax</td> + <td>{summary.TotalPriceAfterTax}</td> + <td>(+{summary.TotalTaxAmount})</td> </tr> - } - <tr className={"grandTotal"}> - <td>Grand Total</td> - <td>{summary.TotalPrice}</td> - </tr> + {summary.RoundedOff !== 0.00 && + <tr> + <td>Rounded Off</td> + <td>{summary.RoundedOff}</td> + </tr> + } + + <tr className={"grandTotal"}> + <td>Grand Total</td> + <td>{summary.TotalPrice}</td> + </tr> + </tbody> </table> </div> ); |