Skip to content

Commit

Permalink
Clean up unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
spcheema committed Jan 16, 2024
1 parent 3b6949d commit 07ff3e0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/components/EReceipt.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -113,5 +103,3 @@ export default withOnyx<EReceiptProps, EReceiptOnyxProps>({
key: ({transactionID}) => `${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`,
},
})(EReceipt);

export type {EReceiptProps, EReceiptOnyxProps};

0 comments on commit 07ff3e0

Please sign in to comment.