From bb331d9c61a0e38cbbfc891204819557327e1ca0 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sun, 18 Apr 2021 10:04:28 +0530 Subject: Added HSN support --- src/components/Display/SummaryDisplay.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/components/Display/SummaryDisplay.js') diff --git a/src/components/Display/SummaryDisplay.js b/src/components/Display/SummaryDisplay.js index ebc382c..1110358 100644 --- a/src/components/Display/SummaryDisplay.js +++ b/src/components/Display/SummaryDisplay.js @@ -18,7 +18,7 @@ const getSummary = (items) => { ); } -const SummaryDisplayTR = (props) => { +export const SummaryDisplayTR = (props) => { const summary = getSummary(props.items); return ( @@ -29,9 +29,18 @@ const SummaryDisplayTR = (props) => { {summary.TotalQuantity} + {summary.TotalRawPrice} ); } -export default SummaryDisplayTR; +const SummaryDisplay = (props) => { + const summary = getSummary(props.items); + + return ( +

Total: {summary.TotalRawPrice}

+ ); +} + +export default SummaryDisplay; -- cgit v1.2.3