diff --git a/src/components/Reactions/ReactionTooltipContent.tsx b/src/components/Reactions/ReactionTooltipContent.tsx index bef5b51fc906..399372a01912 100644 --- a/src/components/Reactions/ReactionTooltipContent.tsx +++ b/src/components/Reactions/ReactionTooltipContent.tsx @@ -1,12 +1,12 @@ -import React, {useMemo} from 'react'; +import React from 'react'; import {View} from 'react-native'; import Text from '@components/Text'; -import type {WithCurrentUserPersonalDetailsProps} from '@components/withCurrentUserPersonalDetails'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; +import {getLocalizedEmojiName} from '@libs/EmojiUtils'; import {getPersonalDetailsByIDs} from '@libs/PersonalDetailsUtils'; -type ReactionTooltipContentProps = Pick & { +type ReactionTooltipContentProps = { /** * A list of emoji codes to display in the tooltip. */ @@ -21,15 +21,18 @@ type ReactionTooltipContentProps = Pick getPersonalDetailsByIDs({accountIDs, currentUserAccountID: currentUserPersonalDetails.accountID, shouldChangeUserDisplayName: true}), - [currentUserPersonalDetails.accountID, accountIDs], - ); + const {translate, preferredLocale} = useLocalize(); + const users = getPersonalDetailsByIDs({accountIDs, currentUserAccountID, shouldChangeUserDisplayName: true}); + const localizedEmojiName = getLocalizedEmojiName(emojiName, preferredLocale); const namesString = users .map((user) => user?.displayName) @@ -51,7 +54,7 @@ function ReactionTooltipContent({accountIDs, currentUserPersonalDetails, emojiCo {namesString} - {`${translate('emojiReactions.reactedWith')} :${emojiName}:`} + {`${translate('emojiReactions.reactedWith')} :${localizedEmojiName}:`} ); } diff --git a/src/components/Reactions/ReportActionItemEmojiReactions.tsx b/src/components/Reactions/ReportActionItemEmojiReactions.tsx index df80767e6219..5957a39e4f2c 100644 --- a/src/components/Reactions/ReportActionItemEmojiReactions.tsx +++ b/src/components/Reactions/ReportActionItemEmojiReactions.tsx @@ -1,41 +1,36 @@ import sortBy from 'lodash/sortBy'; import React, {useContext, useRef} from 'react'; -import {View} from 'react-native'; -import type {OnyxEntry} from 'react-native-onyx'; +import {InteractionManager, View} from 'react-native'; +import {importEmojiLocale} from '@assets/emojis'; import type {Emoji} from '@assets/emojis/types'; import OfflineWithFeedback from '@components/OfflineWithFeedback'; import Tooltip from '@components/Tooltip/PopoverAnchorTooltip'; -import withCurrentUserPersonalDetails from '@components/withCurrentUserPersonalDetails'; -import type {WithCurrentUserPersonalDetailsProps} from '@components/withCurrentUserPersonalDetails'; +import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails'; +import useLocalize from '@hooks/useLocalize'; import useOnyx from '@hooks/useOnyx'; import useThemeStyles from '@hooks/useThemeStyles'; -import {getEmojiReactionDetails, getLocalizedEmojiName} from '@libs/EmojiUtils'; +import {getEmojiReactionDetails} from '@libs/EmojiUtils'; +import {hideContextMenu} from '@pages/inbox/report/ContextMenu/ReportActionContextMenu'; import {ReactionListContext} from '@pages/inbox/ReportScreenContext'; import type {ReactionListAnchor, ReactionListEvent} from '@pages/inbox/ReportScreenContext'; +import {toggleEmojiReaction} from '@userActions/Report'; +import {isAnonymousUser, signOutAndRedirectToSignIn} from '@userActions/Session'; import CONST from '@src/CONST'; +import {isFullySupportedLocale} from '@src/CONST/LOCALES'; import ONYXKEYS from '@src/ONYXKEYS'; -import type {Locale, ReportAction, ReportActionReactions} from '@src/types/onyx'; +import type {ReportAction, ReportActionReactions} from '@src/types/onyx'; import type {PendingAction} from '@src/types/onyx/OnyxCommon'; +import {getEmptyObject} from '@src/types/utils/EmptyObject'; import AddReactionBubble from './AddReactionBubble'; import EmojiReactionBubble from './EmojiReactionBubble'; import ReactionTooltipContent from './ReactionTooltipContent'; -type ReportActionItemEmojiReactionsProps = WithCurrentUserPersonalDetailsProps & { - /** All the emoji reactions for the report action. */ - emojiReactions: OnyxEntry; - - /** The user's preferred locale. */ - preferredLocale?: OnyxEntry; - +type ReportActionItemEmojiReactionsProps = { /** The report action that these reactions are for */ reportAction: ReportAction; - /** - * Function to call when the user presses on an emoji. - * This can also be an emoji the user already reacted with, - * hence this function asks to toggle the reaction by emoji. - */ - toggleReaction: (emoji: Emoji, preferredSkinTone: number, ignoreSkinToneOnCompare?: boolean) => void; + /** The ID of the chat report this action belongs to */ + reportID: string | undefined; /** We disable reacting with emojis on report actions that have errors */ shouldBlockReactions?: boolean; @@ -77,30 +72,40 @@ type FormattedReaction = { setIsEmojiPickerActive?: (state: boolean) => void; }; -function ReportActionItemEmojiReactions({ - reportAction, - currentUserPersonalDetails, - toggleReaction, - emojiReactions = {}, - shouldBlockReactions = false, - preferredLocale = CONST.LOCALES.DEFAULT, - setIsEmojiPickerActive, -}: ReportActionItemEmojiReactionsProps) { +function ReportActionItemEmojiReactions({reportAction, reportID, shouldBlockReactions = false, setIsEmojiPickerActive}: ReportActionItemEmojiReactionsProps) { const styles = useThemeStyles(); + const {preferredLocale} = useLocalize(); + const {accountID: currentUserAccountID} = useCurrentUserPersonalDetails(); const reactionListRef = useContext(ReactionListContext); const popoverReactionListAnchors = useRef({}); const [preferredSkinTone = CONST.EMOJI_DEFAULT_SKIN_TONE] = useOnyx(ONYXKEYS.PREFERRED_EMOJI_SKIN_TONE); const reportActionID = reportAction.reportActionID; + const [emojiReactions = getEmptyObject()] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS_REACTIONS}${reportActionID}`); + + // Prime the locale emoji table when this action has reactions. + // Skip the default locale since getLocalizedEmojiName never reads localeEmojis for it. + if (preferredLocale && preferredLocale !== CONST.LOCALES.DEFAULT && emojiReactions !== CONST.EMPTY_OBJECT && isFullySupportedLocale(preferredLocale)) { + importEmojiLocale(preferredLocale); + } + + const toggleReaction = (emoji: Emoji, skinTone: number, ignoreSkinToneOnCompare?: boolean) => { + if (isAnonymousUser()) { + hideContextMenu(false); + + // eslint-disable-next-line @typescript-eslint/no-deprecated + InteractionManager.runAfterInteractions(() => { + signOutAndRedirectToSignIn(); + }); + return; + } + toggleEmojiReaction(reportID, reportAction, emoji, emojiReactions, skinTone, currentUserAccountID, ignoreSkinToneOnCompare); + }; // Each emoji is sorted by the oldest timestamp of user reactions so that they will always appear in the same order for everyone const formattedReactions: Array = sortBy( Object.entries(emojiReactions ?? {}).map(([emojiName, emojiReaction]) => { - const {emoji, emojiCodes, reactionCount, hasUserReacted, userAccountIDs, oldestTimestamp} = getEmojiReactionDetails( - emojiName, - emojiReaction, - currentUserPersonalDetails.accountID, - ); + const {emoji, emojiCodes, reactionCount, hasUserReacted, userAccountIDs, oldestTimestamp} = getEmojiReactionDetails(emojiName, emojiReaction, currentUserAccountID); if (reactionCount === 0) { return null; @@ -138,14 +143,15 @@ function ReportActionItemEmojiReactions({ if (reaction === null) { return; } + return ( ( )} renderTooltipContentKey={[...reaction.userAccountIDs.map(String), ...reaction.emojiCodes]} @@ -184,4 +190,4 @@ function ReportActionItemEmojiReactions({ ); } -export default withCurrentUserPersonalDetails(ReportActionItemEmojiReactions); +export default ReportActionItemEmojiReactions; diff --git a/src/pages/TransactionDuplicate/DuplicateTransactionItem.tsx b/src/pages/TransactionDuplicate/DuplicateTransactionItem.tsx index 73521e291054..b48efa5df848 100644 --- a/src/pages/TransactionDuplicate/DuplicateTransactionItem.tsx +++ b/src/pages/TransactionDuplicate/DuplicateTransactionItem.tsx @@ -45,8 +45,6 @@ function DuplicateTransactionItem({transaction, index, onPreviewPressed}: Duplic const [draftMessage] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS_DRAFTS}${originalReportID}`); - const [emojiReactions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS_REACTIONS}${action?.reportActionID}`); - const [linkedTransactionRouteError] = useOnyx( `${ONYXKEYS.COLLECTION.TRANSACTION}${getNonEmptyStringOnyxID(isMoneyRequestAction(action) ? getOriginalMessage(action)?.IOUTransactionID : undefined)}`, { @@ -81,7 +79,6 @@ function DuplicateTransactionItem({transaction, index, onPreviewPressed}: Duplic isUserValidated={isUserValidated} personalDetails={personalDetails} draftMessage={matchingDraftMessage} - emojiReactions={emojiReactions} linkedTransactionRouteError={linkedTransactionRouteError} userBillingFundID={userBillingFundID} isTryNewDotNVPDismissed={isTryNewDotNVPDismissed} diff --git a/src/pages/inbox/report/PureReportActionItem.tsx b/src/pages/inbox/report/PureReportActionItem.tsx index 6f4566abd295..2ff47fc8cf9d 100644 --- a/src/pages/inbox/report/PureReportActionItem.tsx +++ b/src/pages/inbox/report/PureReportActionItem.tsx @@ -4,10 +4,9 @@ import {deepEqual} from 'fast-equals'; import mapValues from 'lodash/mapValues'; import React, {memo, use, useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react'; import type {GestureResponderEvent, TextInput} from 'react-native'; -import {InteractionManager, Keyboard, View} from 'react-native'; +import {Keyboard, View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; import type {ValueOf} from 'type-fest'; -import type {Emoji} from '@assets/emojis/types'; import * as ActionSheetAwareScrollView from '@components/ActionSheetAwareScrollView'; import Button from '@components/Button'; import DisplayNames from '@components/DisplayNames'; @@ -128,7 +127,6 @@ import {openPersonalBankAccountSetupView} from '@userActions/BankAccounts'; import type {IgnoreDirection} from '@userActions/ClearReportActionErrors'; import {hideEmojiPicker, isActive} from '@userActions/EmojiPickerAction'; import {createTransactionThreadReport, expandURLPreview} from '@userActions/Report'; -import {isAnonymousUser, signOutAndRedirectToSignIn} from '@userActions/Session'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import ROUTES from '@src/ROUTES'; @@ -239,9 +237,6 @@ type PureReportActionItemProps = { /** The iou report associated with the linked report, if any */ iouReportOfLinkedReport: OnyxEntry; - /** All the emoji reactions for the report action. */ - emojiReactions?: OnyxTypes.ReportActionReactions; - /** Linked transaction route error */ linkedTransactionRouteError?: Errors; @@ -269,17 +264,6 @@ type PureReportActionItemProps = { /** Whether the room is a chronos report */ isChronosReport?: boolean; - /** Function to toggle emoji reaction */ - toggleEmojiReaction?: ( - reportID: string | undefined, - reportAction: OnyxTypes.ReportAction, - reactionObject: Emoji, - existingReactions: OnyxEntry, - paramSkinTone: number, - currentUserAccountID: number, - ignoreSkinToneOnCompare: boolean | undefined, - ) => void; - /** Function to resolve actionable report mention whisper */ resolveActionableReportMentionWhisper?: ( report: OnyxEntry, @@ -332,9 +316,6 @@ type PureReportActionItemProps = { /** Did the user dismiss trying out NewDot? If true, it means they prefer using OldDot */ isTryNewDotNVPDismissed?: boolean; - /** Current user's account id */ - currentUserAccountID: number; - /** The bank account list */ bankAccountList?: OnyxTypes.BankAccountList | undefined; @@ -379,7 +360,6 @@ function PureReportActionItem({ taskReport, linkedReport, iouReportOfLinkedReport, - emojiReactions, linkedTransactionRouteError, isUserValidated, parentReport, @@ -389,7 +369,6 @@ function PureReportActionItem({ deleteReportActionDraft = () => {}, isArchivedRoom, isChronosReport, - toggleEmojiReaction = () => {}, resolveActionableReportMentionWhisper = () => {}, resolveActionableMentionWhisper = () => {}, isClosedExpenseReportWithNoExpenses, @@ -402,7 +381,6 @@ function PureReportActionItem({ shouldShowBorder, shouldHighlight = false, isTryNewDotNVPDismissed = false, - currentUserAccountID, bankAccountList, reportNameValuePairsOrigin, reportNameValuePairsOriginalID, @@ -684,13 +662,6 @@ function PureReportActionItem({ ], ); - const toggleReaction = useCallback( - (emoji: Emoji, preferredSkinTone: number, ignoreSkinToneOnCompare?: boolean) => { - toggleEmojiReaction(reportID, action, emoji, emojiReactions, preferredSkinTone, currentUserAccountID, ignoreSkinToneOnCompare); - }, - [reportID, action, emojiReactions, toggleEmojiReaction, currentUserAccountID], - ); - const contextMenuStateValue = useMemo( () => ({ anchor: popoverAnchorRef.current, @@ -1140,24 +1111,12 @@ function PureReportActionItem({ !isEmptyObject(item))} /> )} - {!isMessageDeleted(action) && ( + {!isOnSearch && !isMessageDeleted(action) && ( { - if (isAnonymousUser()) { - hideContextMenu(false); - - // eslint-disable-next-line @typescript-eslint/no-deprecated - InteractionManager.runAfterInteractions(() => { - signOutAndRedirectToSignIn(); - }); - } else { - toggleReaction(emoji, preferredSkinTone, ignoreSkinToneOnCompare); - } - }} setIsEmojiPickerActive={setIsEmojiPickerActive} /> @@ -1473,7 +1432,6 @@ export default memo(PureReportActionItem, (prevProps, nextProps) => { deepEqual(prevParentReportAction, nextParentReportAction) && prevProps.draftMessage === nextProps.draftMessage && prevProps.iouReport?.reportID === nextProps.iouReport?.reportID && - deepEqual(prevProps.emojiReactions, nextProps.emojiReactions) && deepEqual(prevProps.linkedTransactionRouteError, nextProps.linkedTransactionRouteError) && prevProps.isUserValidated === nextProps.isUserValidated && prevProps.parentReport?.reportID === nextProps.parentReport?.reportID && diff --git a/src/pages/inbox/report/ReportActionItem.tsx b/src/pages/inbox/report/ReportActionItem.tsx index c6043494a1e6..1949915ecd31 100644 --- a/src/pages/inbox/report/ReportActionItem.tsx +++ b/src/pages/inbox/report/ReportActionItem.tsx @@ -1,6 +1,5 @@ import React, {useCallback} from 'react'; import type {OnyxEntry} from 'react-native-onyx'; -import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails'; import useOnyx from '@hooks/useOnyx'; import useOriginalReportID from '@hooks/useOriginalReportID'; import useReportIsArchived from '@hooks/useReportIsArchived'; @@ -17,23 +16,20 @@ import { isCurrentUserTheOnlyParticipant, } from '@libs/ReportUtils'; import {clearAllRelatedReportActionErrors} from '@userActions/ClearReportActionErrors'; -import {deleteReportActionDraft, resolveActionableMentionWhisper, resolveActionableReportMentionWhisper, toggleEmojiReaction} from '@userActions/Report'; +import {deleteReportActionDraft, resolveActionableMentionWhisper, resolveActionableReportMentionWhisper} from '@userActions/Report'; import {clearError} from '@userActions/Transaction'; import ONYXKEYS from '@src/ONYXKEYS'; -import type {PersonalDetailsList, ReportActionReactions, Transaction} from '@src/types/onyx'; +import type {PersonalDetailsList, Transaction} from '@src/types/onyx'; import type {PureReportActionItemProps} from './PureReportActionItem'; import PureReportActionItem from './PureReportActionItem'; -type ReportActionItemProps = Omit & { +type ReportActionItemProps = Omit & { /** Whether to show the draft message or not */ shouldShowDraftMessage?: boolean; /** Draft message for the report action */ draftMessage?: string; - /** Emoji reactions for the report action */ - emojiReactions?: OnyxEntry; - /** User wallet tierName */ userWalletTierName: string | undefined; @@ -54,7 +50,6 @@ function ReportActionItem({ action, report, draftMessage, - emojiReactions, userWalletTierName, isUserValidated, personalDetails, @@ -67,7 +62,6 @@ function ReportActionItem({ const originalMessage = getOriginalMessage(action); const originalReportID = useOriginalReportID(reportID, action); const isOriginalReportArchived = useReportIsArchived(originalReportID); - const {accountID: currentUserAccountID} = useCurrentUserPersonalDetails(); const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED); const [betas] = useOnyx(ONYXKEYS.BETAS); const [reportMetadata] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_METADATA}${reportID}`); @@ -110,13 +104,11 @@ function ReportActionItem({ action={action} report={report} policy={policy} - currentUserAccountID={currentUserAccountID} draftMessage={draftMessage} iouReport={iouReport} taskReport={taskReport} linkedReport={linkedReport} iouReportOfLinkedReport={iouReportOfLinkedReport} - emojiReactions={emojiReactions} linkedTransactionRouteError={linkedTransactionRouteError} isUserValidated={isUserValidated} parentReport={parentReport} @@ -126,7 +118,6 @@ function ReportActionItem({ deleteReportActionDraft={deleteReportActionDraft} isArchivedRoom={isArchivedNonExpenseReport(originalReport, isOriginalReportArchived)} isChronosReport={chatIncludesChronosWithID(originalReportID)} - toggleEmojiReaction={toggleEmojiReaction} resolveActionableReportMentionWhisper={resolveActionableReportMentionWhisper} resolveActionableMentionWhisper={resolveActionableMentionWhisper} isClosedExpenseReportWithNoExpenses={isClosedExpenseReportWithNoExpenses(iouReport, transactionsOnIOUReport)} diff --git a/src/pages/inbox/report/ReportActionItemParentAction.tsx b/src/pages/inbox/report/ReportActionItemParentAction.tsx index 8d21b7af6445..fb57ec1c6b07 100644 --- a/src/pages/inbox/report/ReportActionItemParentAction.tsx +++ b/src/pages/inbox/report/ReportActionItemParentAction.tsx @@ -22,7 +22,7 @@ import { } from '@libs/ReportUtils'; import {navigateToConciergeChatAndDeleteReport} from '@userActions/Report'; import ONYXKEYS from '@src/ONYXKEYS'; -import type {PersonalDetailsList, Report, ReportAction, ReportActionReactions, ReportActions, ReportActionsDrafts, ReportNameValuePairs, Transaction} from '@src/types/onyx'; +import type {PersonalDetailsList, Report, ReportAction, ReportActions, ReportActionsDrafts, ReportNameValuePairs, Transaction} from '@src/types/onyx'; import AnimatedEmptyStateBackground from './AnimatedEmptyStateBackground'; import RepliesDivider from './RepliesDivider'; import ReportActionItem from './ReportActionItem'; @@ -171,23 +171,6 @@ function ReportActionItemParentAction({ const [ancestorDraftMessages] = useOnyx(ONYXKEYS.COLLECTION.REPORT_ACTIONS_DRAFTS, {selector: ancestorDraftSelector}, [ancestors, ancestorsReportActions]); - const ancestorReactionSelector = useCallback( - (allReactions: OnyxCollection) => { - if (!allReactions) { - return {}; - } - const result: OnyxCollection = {}; - for (const ancestor of ancestors) { - const key = `${ONYXKEYS.COLLECTION.REPORT_ACTIONS_REACTIONS}${ancestor.reportAction.reportActionID}`; - result[key] = allReactions[key]; - } - return result; - }, - [ancestors], - ); - - const [ancestorReactions] = useOnyx(ONYXKEYS.COLLECTION.REPORT_ACTIONS_REACTIONS, {selector: ancestorReactionSelector}, [ancestors]); - const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID); const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED); const [isSelfTourViewed] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {selector: hasSeenTourSelector}); @@ -217,7 +200,6 @@ function ReportActionItemParentAction({ const reportDraftMessages = originalReportID ? ancestorDraftMessages?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS_DRAFTS}${originalReportID}`] : undefined; const matchingDraftMessage = reportDraftMessages?.[ancestorReportAction.reportActionID]; const matchingDraftMessageString = matchingDraftMessage?.message; - const actionEmojiReactions = ancestorReactions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS_REACTIONS}${ancestorReportAction.reportActionID}`]; return ( getOriginalMessage(reportAction), [reportAction]); - const [emojiReactions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS_REACTIONS}${reportAction.reportActionID}`); const [reportDraftMessages] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS_DRAFTS}${originalReportID}`); const draftMessage = reportDraftMessages?.[reportAction.reportActionID]?.message; @@ -225,7 +224,6 @@ function ReportActionsListItemRenderer({ isUserValidated={isUserValidated} personalDetails={personalDetails} draftMessage={draftMessage} - emojiReactions={emojiReactions} userBillingFundID={userBillingFundID} isTryNewDotNVPDismissed={isTryNewDotNVPDismissed} reportNameValuePairsOrigin={reportNameValuePairsOrigin} diff --git a/tests/ui/ClearReportActionErrorsUITest.tsx b/tests/ui/ClearReportActionErrorsUITest.tsx index 137aecaedd94..148235696939 100644 --- a/tests/ui/ClearReportActionErrorsUITest.tsx +++ b/tests/ui/ClearReportActionErrorsUITest.tsx @@ -104,7 +104,6 @@ describe('ClearReportActionErrors UI', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} clearAllRelatedReportActionErrors={clearErrorFn} originalReportID={originalReportID} diff --git a/tests/ui/PureReportActionItemTest.tsx b/tests/ui/PureReportActionItemTest.tsx index ba24a8da1133..10475e7dc251 100644 --- a/tests/ui/PureReportActionItemTest.tsx +++ b/tests/ui/PureReportActionItemTest.tsx @@ -112,7 +112,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -405,7 +404,6 @@ describe('PureReportActionItem', () => { linkedReport={undefined} iouReportOfLinkedReport={undefined} reportMetadata={reportMetadata} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -460,7 +458,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -519,7 +516,6 @@ describe('PureReportActionItem', () => { linkedReport={undefined} iouReportOfLinkedReport={undefined} reportMetadata={reportMetadata} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -570,7 +566,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -645,7 +640,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -707,7 +701,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -796,7 +789,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -1112,7 +1104,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -1297,7 +1288,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -1394,7 +1384,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} isClosedExpenseReportWithNoExpenses betas={undefined} /> @@ -1427,7 +1416,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} missingPaymentMethod="bankAccount" betas={undefined} /> @@ -1462,7 +1450,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} missingPaymentMethod="wallet" betas={undefined} /> @@ -1500,7 +1487,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} // eslint-disable-next-line @typescript-eslint/naming-convention bankAccountList={{12345: {accountData: {accountNumber: '000098765'}} as never}} betas={undefined} @@ -1539,7 +1525,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} // eslint-disable-next-line @typescript-eslint/naming-convention bankAccountList={{12345: {accountData: {accountNumber: '000098765'}} as never}} betas={undefined} @@ -1581,7 +1566,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} // eslint-disable-next-line @typescript-eslint/naming-convention bankAccountList={{55555: {accountData: {accountNumber: '000012345'}} as never}} betas={undefined} @@ -1624,7 +1608,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} // eslint-disable-next-line @typescript-eslint/naming-convention bankAccountList={{77777: {accountData: {accountNumber: '000067890'}} as never}} betas={undefined} @@ -1718,7 +1701,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -1761,7 +1743,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -2346,7 +2327,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} /> @@ -2402,7 +2382,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} reportNameValuePairsOrigin="harvest" reportNameValuePairsOriginalID="origReport123" @@ -2457,7 +2436,6 @@ describe('PureReportActionItem', () => { taskReport={undefined} linkedReport={undefined} iouReportOfLinkedReport={undefined} - currentUserAccountID={ACTOR_ACCOUNT_ID} betas={undefined} />