aboutsummaryrefslogtreecommitdiff
path: root/src/components/Display/SummaryDisplay.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Display/SummaryDisplay.js')
-rw-r--r--src/components/Display/SummaryDisplay.js13
1 files changed, 11 insertions, 2 deletions
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) => {
<td>{summary.TotalQuantity}</td>
<td className={"disabledBorder"}></td>
<td className={"disabledBorder"}></td>
+ <td className={"disabledBorder"}></td>
<td>{summary.TotalRawPrice}</td>
</tr>
);
}
-export default SummaryDisplayTR;
+const SummaryDisplay = (props) => {
+ const summary = getSummary(props.items);
+
+ return (
+ <p>Total: {summary.TotalRawPrice}</p>
+ );
+}
+
+export default SummaryDisplay;