From 07ff3e031889c5468cca88da037055edf708b8ff Mon Sep 17 00:00:00 2001 From: SP Singh <19812199+spcheema@users.noreply.github.com> Date: Wed, 17 Jan 2024 09:16:29 +1100 Subject: [PATCH] Clean up unused code --- src/components/EReceipt.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/components/EReceipt.tsx b/src/components/EReceipt.tsx index 9b16a3686aec..c49e64c11ab4 100644 --- a/src/components/EReceipt.tsx +++ b/src/components/EReceipt.tsx @@ -1,4 +1,3 @@ -import PropTypes from 'prop-types'; import React from 'react'; import {View} from 'react-native'; import {OnyxEntry, withOnyx} from 'react-native-onyx'; @@ -36,16 +35,7 @@ function EReceipt({transaction, transactionID}: EReceiptProps) { const primaryColor = colorStyles?.backgroundColor; const secondaryColor = colorStyles?.color; - // const { - // amount: transactionAmount, - // currency: transactionCurrency, - // merchant: transactionMerchant, - // created: transactionDate, - // cardID: transactionCardID, - // } = ReportUtils.getTransactionDetails(transaction, CONST.DATE.MONTH_DAY_YEAR_FORMAT); - const transactionDetails = ReportUtils.getTransactionDetails(transaction, CONST.DATE.MONTH_DAY_YEAR_FORMAT); - const transactionAmount = transactionDetails?.amount const transactionCurrency = transactionDetails?.currency || '' const transactionMerchant = transactionDetails?.merchant @@ -113,5 +103,3 @@ export default withOnyx({ key: ({transactionID}) => `${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`, }, })(EReceipt); - -export type {EReceiptProps, EReceiptOnyxProps}; \ No newline at end of file