From 194799f16354ad5203a1b59832328bafacbba265 Mon Sep 17 00:00:00 2001 From: Nidhish-D-Nayak Date: Sat, 5 Aug 2023 23:48:17 +0530 Subject: [PATCH] Updated orders-preview & orders-row - removed method & table heading --- src/components/orders-preview/orders-preview.component.tsx | 3 --- src/components/orders-row/orders-row.component.tsx | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/orders-preview/orders-preview.component.tsx b/src/components/orders-preview/orders-preview.component.tsx index cd3cb66..ce3968a 100644 --- a/src/components/orders-preview/orders-preview.component.tsx +++ b/src/components/orders-preview/orders-preview.component.tsx @@ -37,7 +37,6 @@ const OrdersPreview = () => { Order No. OrdersType (Quantity) Total - Payment Type Status @@ -46,7 +45,6 @@ const OrdersPreview = () => { const paymentDetail: PaymentDetailsType = paymentDetails[ index ] || { - method: "N/A", status: "N/A", }; return ( @@ -54,7 +52,6 @@ const OrdersPreview = () => { key={index} order={order} index={index} - method={paymentDetail.method} status={paymentDetail.status} /> ); diff --git a/src/components/orders-row/orders-row.component.tsx b/src/components/orders-row/orders-row.component.tsx index 8213147..e79dcb4 100644 --- a/src/components/orders-row/orders-row.component.tsx +++ b/src/components/orders-row/orders-row.component.tsx @@ -3,11 +3,10 @@ import { OrdersType } from "../../store/orders/orders.types"; type OrderRowType = { order: OrdersType; index: number; - method: string; status: string; }; -const OrderRow: React.FC = ({ order, index, method, status }) => { +const OrderRow: React.FC = ({ order, index, status }) => { const calculateTotalPrice = (order: OrdersType) => { const totalPrice = order.reduce( (accumulator, item) => accumulator + item.price * item.quantity,