Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
329479f
Fix selection mode
luacmartins Mar 31, 2026
854b99f
fix misalignment in deleted expenses table column
jakubstec Apr 1, 2026
7d2e075
Show "Undelete" action in expanded group search results
mhawryluk Apr 1, 2026
a2d3054
Fix prop name
mhawryluk Apr 1, 2026
8da2edc
Hide right arrow on narrow view when no action is passed
mhawryluk Apr 1, 2026
d090dbb
fix selection mode persisting after undeleting all expenses offline
jakubstec Apr 1, 2026
dd5c115
Allow negative amounts for deleted transactions on search
jnowakow Apr 1, 2026
a58f521
fix typescript
jnowakow Apr 1, 2026
b67b62c
Merge remote-tracking branch 'origin/main' into jakubstec/selection-m…
jakubstec Apr 1, 2026
61a4b53
Make Undelete button grey and fix header padding
mhawryluk Apr 1, 2026
11cf1a3
Revert "Revert 85818"
jnowakow Apr 2, 2026
5be88d7
Merge branch 'jnowakow/allow-negative-amounts-for-deleted-search-tran…
jnowakow Apr 3, 2026
677903f
Merge branch 'jakubstec/reports-category-column-alignment-fix' into j…
jnowakow Apr 3, 2026
0c919a1
Merge branch 'fix/search-expanded-group-action' into jnokowaw/deleted…
jnowakow Apr 3, 2026
040f009
Merge branch 'cmartins-ifxDeleteSelection' into jnokowaw/deleted-tran…
jnowakow Apr 3, 2026
cbb9b75
Merge branch 'jakubstec/selection-mode-persists-after-undeleting-fix'…
jnowakow Apr 8, 2026
6cd6657
Fix displaying undeleted report in offline mode
jnowakow Apr 8, 2026
7b0d697
Don't clear modified transaction data when moving it to other report
jnowakow Apr 9, 2026
5cd0b5b
Merge branch 'main' of github.com:Expensify/App into jnokowaw/deleted…
jnowakow Apr 9, 2026
269b10b
Update package-lock.json
jnowakow Apr 9, 2026
570dba3
Merge branch 'main' into jnokowaw/deleted-transactions-on-search-v2
jnowakow Apr 13, 2026
ed46281
Fix typescript
jnowakow Apr 13, 2026
d4f83aa
fix linter
jnowakow Apr 13, 2026
b992816
fix linter
jnowakow Apr 13, 2026
c853141
flip condition for pressable role
jnowakow Apr 13, 2026
16fc646
change lambda to named function
jnowakow Apr 14, 2026
2654723
missing semicolon
jnowakow Apr 14, 2026
944a0b2
Merge branch 'main' of github.com:Expensify/App into jnokowaw/deleted…
jnowakow Apr 14, 2026
95e4b43
Merge branch 'main' of github.com:Expensify/App into jnokowaw/deleted…
jnowakow Apr 14, 2026
ed6feb6
fix semantic of the comment
jnowakow Apr 14, 2026
fa790b2
cast function to boolean
jnowakow Apr 14, 2026
5e421dc
fix lint
jnowakow Apr 14, 2026
d654e0b
Merge branch 'main' of github.com:Expensify/App into jnokowaw/deleted…
jnowakow Apr 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,7 @@ const CONST = {
MAX_COUNT_BEFORE_FOCUS_UPDATE: 30,
MIN_INITIAL_REPORT_ACTION_COUNT: 15,
UNREPORTED_REPORT_ID: '0',
TRASH_REPORT_ID: '-1',
SPLIT_REPORT_ID: '-2',
SECONDARY_ACTIONS: {
SUBMIT: 'submit',
Expand Down Expand Up @@ -7486,6 +7487,7 @@ const CONST = {
DONE: 'done',
EXPORT_TO_ACCOUNTING: 'exportToAccounting',
PAID: 'paid',
UNDELETE: 'undelete',
},
HAS_VALUES: {
RECEIPT: 'receipt',
Expand All @@ -7509,6 +7511,7 @@ const CONST = {
CHANGE_REPORT: 'changeReport',
SPLIT: 'split',
DUPLICATE: 'duplicate',
UNDELETE: 'undelete',
},
TRANSACTION_TYPE: {
CASH: 'cash',
Expand Down Expand Up @@ -7747,6 +7750,7 @@ const CONST = {
APPROVED: 'approved',
DONE: 'done',
PAID: 'paid',
DELETED: 'deleted',
},
EXPENSE_REPORT: {
ALL: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const actionTranslationsMap: Record<SearchTransactionAction, TranslationPaths> =
[CONST.SEARCH.ACTION_TYPES.EXPORT_TO_ACCOUNTING]: 'common.export',
[CONST.SEARCH.ACTION_TYPES.DONE]: 'common.done',
[CONST.SEARCH.ACTION_TYPES.PAID]: 'iou.settledExpensify',
[CONST.SEARCH.ACTION_TYPES.UNDELETE]: 'search.bulkActions.undelete',
};

export default actionTranslationsMap;
12 changes: 6 additions & 6 deletions src/components/Search/SearchList/ListItem/ActionCell/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import PayActionCell from './PayActionCell';
type ActionCellProps = {
action?: SearchTransactionAction;
isSelected?: boolean;
goToItem: () => void;
onButtonPress: () => void;
isChildListItem?: boolean;
isLoading?: boolean;
policyID?: string;
Expand All @@ -25,7 +25,7 @@ type ActionCellProps = {
function ActionCell({
action = CONST.SEARCH.ACTION_TYPES.VIEW,
isSelected = false,
goToItem,
onButtonPress,
isChildListItem = false,
isLoading = false,
policyID = '',
Expand All @@ -41,15 +41,15 @@ function ActionCell({

const shouldUseViewAction = action === CONST.SEARCH.ACTION_TYPES.VIEW || action === CONST.SEARCH.ACTION_TYPES.PAID || action === CONST.SEARCH.ACTION_TYPES.DONE;

if (shouldUseViewAction || isChildListItem) {
if (shouldUseViewAction || (isChildListItem && action !== CONST.SEARCH.ACTION_TYPES.UNDELETE)) {
const text = translate(actionTranslationsMap[CONST.SEARCH.ACTION_TYPES.VIEW]);
const buttonInnerStyles = isSelected ? styles.buttonDefaultSelected : {};

return (
<Button
testID="ActionCell"
text={text}
onPress={goToItem}
onPress={onButtonPress}
small={!extraSmall}
extraSmall={extraSmall}
style={[styles.w100, shouldDisablePointerEvents && styles.pointerEventsNone]}
Expand Down Expand Up @@ -83,12 +83,12 @@ function ActionCell({
return (
<Button
text={text}
onPress={goToItem}
onPress={onButtonPress}
small={!extraSmall}
extraSmall={extraSmall}
style={[styles.w100, shouldDisablePointerEvents && styles.pointerEventsNone]}
isLoading={isLoading}
success
success={action !== CONST.SEARCH.ACTION_TYPES.UNDELETE}
isDisabled={isOffline || shouldDisablePointerEvents}
shouldStayNormalOnDisable={shouldDisablePointerEvents}
isNested
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function ExpenseReportListItemRow({
<View style={[StyleUtils.getReportTableColumnStyles(CONST.SEARCH.TABLE_COLUMNS.ACTION)]}>
<ActionCell
action={item.action}
goToItem={onButtonPress}
onButtonPress={onButtonPress}
isSelected={item.isSelected}
isLoading={isActionLoading}
policyID={item.policyID}
Expand Down Expand Up @@ -321,7 +321,7 @@ function ExpenseReportListItemRow({
<View style={[styles.pAbsolute, styles.t0, styles.r0, {width: variables.w72}, styles.alignItemsEnd]}>
<ActionCell
action={item.action}
goToItem={onButtonPress}
onButtonPress={onButtonPress}
isSelected={item.isSelected}
isLoading={isActionLoading}
policyID={item.policyID}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function HeaderFirstRow<TItem extends ListItem>({
<View style={[StyleUtils.getReportTableColumnStyles(CONST.SEARCH.TABLE_COLUMNS.ACTION)]}>
<ActionCell
action={reportItem.action}
goToItem={handleOnButtonPress}
onButtonPress={handleOnButtonPress}
isSelected={reportItem.isSelected}
isLoading={isActionLoading}
policyID={reportItem.policyID}
Expand Down
11 changes: 7 additions & 4 deletions src/components/Search/SearchList/ListItem/StatusCell.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useMemo} from 'react';
import React from 'react';
import {View} from 'react-native';
import StatusBadge from '@components/StatusBadge';
import useLocalize from '@hooks/useLocalize';
Expand All @@ -15,15 +15,18 @@ type StatusCellProps = {

/** Whether the report's state/status is pending */
isPending?: boolean;

/** Whether the transaction is deleted */
isDeleted?: boolean;
};

function StatusCell({stateNum, statusNum, isPending}: StatusCellProps) {
function StatusCell({stateNum, statusNum, isPending, isDeleted}: StatusCellProps) {
const styles = useThemeStyles();
const theme = useTheme();
const {translate} = useLocalize();

const statusText = useMemo(() => getReportStatusTranslation({stateNum, statusNum, translate}), [stateNum, statusNum, translate]);
const reportStatusColorStyle = useMemo(() => getReportStatusColorStyle(theme, stateNum, statusNum), [theme, stateNum, statusNum]);
const statusText = getReportStatusTranslation({stateNum, statusNum, isDeleted, translate});
const reportStatusColorStyle = getReportStatusColorStyle(theme, stateNum, statusNum, isDeleted);

if (!statusText || !reportStatusColorStyle) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {getReportAction} from '@libs/ReportActionsUtils';
import {getReportOrDraftReport} from '@libs/ReportUtils';
import {createAndOpenSearchTransactionThread, getColumnsToShow, getTableMinWidth} from '@libs/SearchUIUtils';
import type {SkeletonSpanReasonAttributes} from '@libs/telemetry/useSkeletonSpan';
import {getTransactionViolations} from '@libs/TransactionUtils';
import {getTransactionViolations, isDeletedTransaction} from '@libs/TransactionUtils';
import type {TransactionPreviewData} from '@userActions/Search';
import {setActiveTransactionIDs} from '@userActions/TransactionThreadNavigation';
import CONST from '@src/CONST';
Expand Down Expand Up @@ -54,6 +54,7 @@ function TransactionGroupListExpanded<TItem extends ListItem>({
searchTransactions,
isInSingleTransactionReport,
onLongPress,
onUndelete,
}: TransactionGroupListExpandedProps<TItem>) {
const theme = useTheme();
const styles = useThemeStyles();
Expand Down Expand Up @@ -186,14 +187,22 @@ function TransactionGroupListExpanded<TItem extends ListItem>({
openReportInRHP(transaction);
};

const handleButtonPress = (transaction: TransactionListItemType) => {
if (transaction.action === CONST.SEARCH.ACTION_TYPES.UNDELETE) {
onUndelete?.(transaction);
return;
}
openReportInRHP(transaction);
};

const minTableWidth = getTableMinWidth(currentColumns.filter((column) => !column.startsWith(CONST.SEARCH.GROUP_COLUMN_PREFIX)) ?? []);
const shouldScrollHorizontally = isLargeScreenWidth && minTableWidth > windowWidth;

const content = (
<View style={[styles.flexColumn, styles.flex1]}>
{isLargeScreenWidth && !(isEmpty && shouldDisplayLoadingIndicator) && (
<>
<View style={[styles.searchListHeaderContainerStyle, styles.groupSearchListTableContainerStyle, styles.bgTransparent, styles.pl8, styles.pr11, styles.borderNone]}>
<View style={[styles.searchListHeaderContainerStyle, styles.groupSearchListTableContainerStyle, styles.bgTransparent, styles.pl8, styles.borderNone]}>
<SearchTableHeader
canSelectMultiple
type={CONST.SEARCH.DATA_TYPES.EXPENSE}
Expand Down Expand Up @@ -232,14 +241,12 @@ function TransactionGroupListExpanded<TItem extends ListItem>({
checkboxSentryLabel={CONST.SENTRY_LABEL.SEARCH.EXPANDED_TRANSACTION_ROW_CHECKBOX}
onCheckboxPress={() => onCheckboxPress?.(transaction as unknown as TItem)}
columns={currentColumns}
onButtonPress={() => {
openReportInRHP(transaction);
}}
onButtonPress={() => handleButtonPress(transaction)}
style={[styles.noBorderRadius, styles.p3, isLargeScreenWidth && [styles.pv2, styles.searchTableRowHeight], styles.flex1]}
isReportItemChild
isInSingleTransactionReport={isInSingleTransactionReport}
shouldShowBottomBorder={shouldShowBottomBorder}
onArrowRightPress={() => openReportInRHP(transaction)}
onArrowRightPress={isDeletedTransaction(transaction) ? undefined : () => openReportInRHP(transaction)}
Comment thread
jnowakow marked this conversation as resolved.
shouldShowArrowRightOnNarrowLayout
reportActions={exportedReportActions}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ function TransactionGroupListItem<TItem extends ListItem>({
isLastItem,
userBillingGracePeriodEnds,
ownerBillingGracePeriodEnd,
onUndelete,
}: TransactionGroupListItemProps<TItem>) {
const groupItem = item as unknown as TransactionGroupListItemType;

Expand Down Expand Up @@ -574,6 +575,7 @@ function TransactionGroupListItem<TItem extends ListItem>({
searchTransactions={searchTransactions}
isInSingleTransactionReport={groupItem.transactions.length === 1}
onLongPress={onExpandedRowLongPress}
onUndelete={onUndelete}
/>
</AnimatedCollapsible>
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {syncMissingAttendeesViolation} from '@libs/AttendeeUtils';
import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
import {isAttendeeTrackingEnabled} from '@libs/PolicyUtils';
import {isInvoiceReport} from '@libs/ReportUtils';
import {isViolationDismissed, mergeProhibitedViolations, shouldShowViolation} from '@libs/TransactionUtils';
import {isDeletedTransaction as isDeletedTransactionUtil, isViolationDismissed, mergeProhibitedViolations, shouldShowViolation} from '@libs/TransactionUtils';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import {isActionLoadingSelector} from '@src/selectors/ReportMetaData';
Expand Down Expand Up @@ -58,8 +58,10 @@ function TransactionListItem<TItem extends ListItem>({
isLastItem,
userBillingGracePeriodEnds,
ownerBillingGracePeriodEnd,
onUndelete,
}: TransactionListItemProps<TItem>) {
const transactionItem = item as unknown as TransactionListItemType;
const isDeletedTransaction = isDeletedTransactionUtil(transactionItem);
const styles = useThemeStyles();
const theme = useTheme();
const StyleUtils = useStyleUtils();
Expand Down Expand Up @@ -179,6 +181,7 @@ function TransactionListItem<TItem extends ListItem>({
onDelegateAccessRestricted: showDelegateNoAccessModal,
personalPolicyID,
ownerBillingGracePeriodEnd,
onUndelete: () => onUndelete?.(transactionItem),
});
};

Expand All @@ -191,10 +194,10 @@ function TransactionListItem<TItem extends ListItem>({
<PressableWithFeedback
ref={pressableRef}
onLongPress={() => onLongPressRow?.(item)}
onPress={() => onSelectRow(item, transactionPreviewData)}
onPress={isDeletedTransaction && !canSelectMultiple ? undefined : () => onSelectRow(item, transactionPreviewData)}
Comment thread
jnowakow marked this conversation as resolved.
disabled={isDisabled && !item.isSelected}
accessibilityLabel={item.text ?? ''}
role={getButtonRole(true)}
role={!isDeletedTransaction ? getButtonRole(true) : 'none'}
isNested
onMouseDown={(e) => e.preventDefault()}
hoverStyle={[!item.isDisabled && styles.hoveredComponentBG, item.isSelected && styles.activeComponentBG]}
Expand All @@ -204,6 +207,7 @@ function TransactionListItem<TItem extends ListItem>({
style={[
pressableStyle,
isFocused && StyleUtils.getItemBackgroundColorStyle(!!item.isSelected, !!isFocused, !!item.isDisabled, theme.activeComponentBG, theme.hoverComponentBG),
isDeletedTransaction && styles.cursorDefault,
]}
onFocus={onFocus}
wrapperStyle={[
Expand All @@ -221,7 +225,7 @@ function TransactionListItem<TItem extends ListItem>({
<UserInfoAndActionButtonRow
item={transactionItem}
handleActionButtonPress={handleActionButtonPress}
shouldShowUserInfo={!!transactionItem?.from}
shouldShowUserInfo={!isDeletedTransaction && !!transactionItem?.from}
isInMobileSelectionMode={shouldUseNarrowLayout && !!canSelectMultiple}
isDisabledItem={!!isDisabled}
/>
Expand Down Expand Up @@ -250,7 +254,7 @@ function TransactionListItem<TItem extends ListItem>({
checkboxSentryLabel={CONST.SENTRY_LABEL.SEARCH.TRANSACTION_LIST_ITEM_CHECKBOX}
style={[styles.p3, styles.pv2, shouldUseNarrowLayout ? styles.pt2 : isLargeScreenWidth && styles.noBorderRadius]}
violations={transactionViolations}
onArrowRightPress={() => onSelectRow(item, transactionPreviewData)}
onArrowRightPress={isDeletedTransaction ? undefined : () => onSelectRow(item, transactionPreviewData)}
isHover={hovered}
customCardNames={customCardNames}
reportActions={exportedReportActions}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function UserInfoAndActionButtonRow({
<View style={[{width: isLargeScreenWidth ? variables.w68 : variables.w72}, styles.alignItemsEnd]}>
<ActionCell
action={item.action}
goToItem={handleActionButtonPress}
onButtonPress={handleActionButtonPress}
isSelected={item.isSelected}
isLoading={isActionLoading}
policyID={item.policyID}
Expand Down
6 changes: 5 additions & 1 deletion src/components/Search/SearchList/ListItem/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ type TransactionListItemProps<TItem extends ListItem> = ListItemProps<TItem> &
columns?: SearchColumnType[];
violations?: Record<string, TransactionViolations | undefined> | undefined;
customCardNames?: Record<number, string>;
/** Callback to undelete a transaction */
onUndelete?: (transaction: Transaction) => void;
};

type TransactionGroupListItemProps<TItem extends ListItem> = ListItemProps<TItem> &
Expand All @@ -435,11 +437,13 @@ type TransactionGroupListItemProps<TItem extends ListItem> = ListItemProps<TItem
columns?: SearchColumnType[];
newTransactionID?: string;
violations?: Record<string, TransactionViolations | undefined> | undefined;
/** Callback to undelete a transaction */
onUndelete?: (transaction: Transaction) => void;
};

type TransactionGroupListExpandedProps<TItem extends ListItem> = Pick<
TransactionGroupListItemProps<TItem>,
'showTooltip' | 'canSelectMultiple' | 'onCheckboxPress' | 'columns' | 'groupBy' | 'accountID' | 'isOffline' | 'violations' | 'onSelectRow'
'showTooltip' | 'canSelectMultiple' | 'onCheckboxPress' | 'columns' | 'groupBy' | 'accountID' | 'isOffline' | 'violations' | 'onSelectRow' | 'onUndelete'
> & {
transactions: TransactionListItemType[];
transactionsVisibleLimit: number;
Expand Down
6 changes: 6 additions & 0 deletions src/components/Search/SearchList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import usePrevious from '@hooks/usePrevious';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useSafeAreaPaddings from '@hooks/useSafeAreaPaddings';
import useThemeStyles from '@hooks/useThemeStyles';
import useUndeleteTransactions from '@hooks/useUndeleteTransactions';
import useWindowDimensions from '@hooks/useWindowDimensions';
import {turnOnMobileSelectionMode} from '@libs/actions/MobileSelectionMode';
import DateUtils from '@libs/DateUtils';
Expand Down Expand Up @@ -304,6 +305,9 @@ function SearchList({
const [personalPolicyID] = useOnyx(ONYXKEYS.PERSONAL_POLICY_ID);
const [userBillingGracePeriodEnds] = useOnyx(ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_USER_BILLING_GRACE_PERIOD_END);
const [ownerBillingGracePeriodEnd] = useOnyx(ONYXKEYS.NVP_PRIVATE_OWNER_BILLING_GRACE_PERIOD_END);
const undeleteTransactions = useUndeleteTransactions();

const handleUndelete = (transaction: Transaction) => undeleteTransactions([transaction]);

const route = useRoute();
const {getScrollOffset} = useContext(ScrollOffsetContext);
Expand Down Expand Up @@ -455,6 +459,7 @@ function SearchList({
customCardNames={customCardNames}
onFocus={onFocus}
newTransactionID={newTransactionID}
onUndelete={handleUndelete}
keyForList={item.keyForList}
isFirstItem={index === 0}
isLastItem={index === data.length - 1 && !ListFooterComponent}
Expand Down Expand Up @@ -492,6 +497,7 @@ function SearchList({
customCardNames,
selectedTransactions,
ListFooterComponent,
handleUndelete,
],
);

Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@

requestAnimationFrame(() => Navigation.navigate(ROUTES.SEARCH_REPORT.getRoute({reportID, backTo})));
},
[

Check warning on line 1167 in src/components/Search/index.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

React Hook useCallback has an unnecessary dependency: 'currentSearchKey'. Either exclude it or remove the dependency array

Check warning on line 1167 in src/components/Search/index.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

React Hook useCallback has an unnecessary dependency: 'currentSearchKey'. Either exclude it or remove the dependency array
isMobileSelectionModeEnabled,
markReportIDAsExpense,
toggleTransaction,
Expand Down Expand Up @@ -1630,7 +1630,7 @@
shouldPreventLongPressRow={isChat || isTask}
SearchTableHeader={
!shouldShowTableHeader ? undefined : (
<View style={[!isTask && styles.pr8, styles.flex1]}>
<View style={[!isTask && styles.pr9, styles.flex1]}>
<SearchTableHeader
canSelectMultiple={canSelectMultiple}
columns={columnsToShow}
Expand Down
5 changes: 3 additions & 2 deletions src/components/TransactionItemRow/DataCells/TotalCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import {convertToDisplayString} from '@libs/CurrencyUtils';
import {getTransactionDetails} from '@libs/ReportUtils';
import {getCurrency as getTransactionCurrency, isScanning} from '@libs/TransactionUtils';
import {getCurrency as getTransactionCurrency, isDeletedTransaction, isScanning} from '@libs/TransactionUtils';
import type TransactionDataCellProps from './TransactionDataCellProps';

function TotalCell({shouldShowTooltip, transactionItem}: TransactionDataCellProps) {
const styles = useThemeStyles();
const {translate} = useLocalize();
const currency = getTransactionCurrency(transactionItem);

const amount = getTransactionDetails(transactionItem)?.amount;
const isDeleted = isDeletedTransaction(transactionItem);
const amount = getTransactionDetails(transactionItem, undefined, undefined, isDeleted)?.amount;
let amountToDisplay = convertToDisplayString(amount, currency);
if (isScanning(transactionItem)) {
amountToDisplay = translate('iou.receiptStatusTitle');
Expand Down
Loading
Loading