Skip to content

Commit cf4c7ff

Browse files
committed
fix lint and types
1 parent 43bfd15 commit cf4c7ff

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/pages/inbox/report/PureReportActionItem.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,6 @@ type PureReportActionItemProps = {
252252
/** Gets all transactions on an IOU report with a receipt */
253253
getTransactionsWithReceipts?: (iouReportID: string | undefined) => OnyxTypes.Transaction[];
254254

255-
/** Whether the current user is the only participant in the report */
256-
isCurrentUserTheOnlyParticipant?: (participantAccountIDs?: number[]) => boolean;
257-
258255
/** Function to clear an error from a transaction */
259256
clearError?: (transactionID: string) => void;
260257

@@ -326,7 +323,6 @@ function PureReportActionItem({
326323
resolveActionableReportMentionWhisper = () => {},
327324
resolveActionableMentionWhisper = () => {},
328325
isClosedExpenseReportWithNoExpenses,
329-
isCurrentUserTheOnlyParticipant = () => false,
330326
getTransactionsWithReceipts = () => [],
331327
clearError = () => {},
332328
clearAllRelatedReportActionErrors = () => {},

src/pages/inbox/report/ReportActionItem.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import useReportIsArchived from '@hooks/useReportIsArchived';
66
import useReportTransactions from '@hooks/useReportTransactions';
77
import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
88
import {getIOUReportIDFromReportActionPreview, getOriginalMessage, isMoneyRequestAction} from '@libs/ReportActionsUtils';
9-
import {chatIncludesChronosWithID, getTransactionsWithReceipts, isArchivedNonExpenseReport, isClosedExpenseReportWithNoExpenses, isCurrentUserTheOnlyParticipant} from '@libs/ReportUtils';
9+
import {chatIncludesChronosWithID, getTransactionsWithReceipts, isArchivedNonExpenseReport, isClosedExpenseReportWithNoExpenses} from '@libs/ReportUtils';
1010
import {clearAllRelatedReportActionErrors} from '@userActions/ClearReportActionErrors';
1111
import {deleteReportActionDraft, resolveActionableMentionWhisper, resolveActionableReportMentionWhisper} from '@userActions/Report';
1212
import {clearError} from '@userActions/Transaction';
@@ -85,7 +85,6 @@ function ReportActionItem({
8585
resolveActionableReportMentionWhisper={resolveActionableReportMentionWhisper}
8686
resolveActionableMentionWhisper={resolveActionableMentionWhisper}
8787
isClosedExpenseReportWithNoExpenses={isClosedExpenseReportWithNoExpenses(iouReport, transactionsOnIOUReport)}
88-
isCurrentUserTheOnlyParticipant={isCurrentUserTheOnlyParticipant}
8988
getTransactionsWithReceipts={getTransactionsWithReceipts}
9089
clearError={clearError}
9190
clearAllRelatedReportActionErrors={clearAllRelatedReportActionErrors}

0 commit comments

Comments
 (0)