From 12fa58555681257384150383b4e83c572d19fec9 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sun, 29 Aug 2021 10:28:10 +0530 Subject: Moved submit button to SummaryDisplay --- src/components/Display/SummaryDisplay.tsx | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'src/components/Display/SummaryDisplay.tsx') diff --git a/src/components/Display/SummaryDisplay.tsx b/src/components/Display/SummaryDisplay.tsx index 22f2e52..5d1589e 100644 --- a/src/components/Display/SummaryDisplay.tsx +++ b/src/components/Display/SummaryDisplay.tsx @@ -6,12 +6,13 @@ * Copyright (c) 2021 Vidhu Kant Sharma */ -import React from "react"; +import React, {Dispatch, SetStateAction} from "react"; import { Item } from "./../../interfaces" import "./Display.scss"; interface props { items: Item[] + setShowSubmitMenu: Dispatch> } interface FullSummary { @@ -51,25 +52,6 @@ const getFullSummary = (items: Item[]): FullSummary => { } } -// export const SummaryDisplayTR: React.FC = (props) => { -// const summary = getBasicSummary(props.items); -// -// return ( -// -// Total -// -// -// {summary.TotalQuantity} -// -// -// -// -// -// {summary.TotalRawPrice} -// -// ); -// } - const SummaryDisplay: React.FC = (props) => { const summary: FullSummary = getFullSummary(props.items); return ( @@ -109,6 +91,10 @@ const SummaryDisplay: React.FC = (props) => { + + ); } -- cgit v1.2.3