Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0278a8b
Refactor shouldReportShowSubscript() to be a pure method
tgolen Jun 19, 2025
e7a8814
Add more thorough test cases
tgolen Jun 19, 2025
56bdad8
Add helper methods for report types
tgolen Jun 19, 2025
407992a
Remove default export
tgolen Jun 19, 2025
b6cc0ea
Simplify parameters
tgolen Jun 19, 2025
bdfa49c
Use hook for checking archived status
tgolen Jun 19, 2025
62ba89d
Fix broken test
tgolen Jun 19, 2025
16e3b42
Fix broken test
tgolen Jun 19, 2025
4be7512
Use simplified report IDs
tgolen Jun 19, 2025
7929533
Fix broken test
tgolen Jun 19, 2025
ba70247
Fix imports
tgolen Jun 20, 2025
290a0c0
Merge branch 'main' into tgolen-remove-rnvps-15
tgolen Jun 20, 2025
7a8a5eb
Merge branch 'main' into tgolen-remove-rnvps-15
tgolen Jun 24, 2025
e2ff847
Disable flaky test
tgolen Jun 24, 2025
0396161
Fix test description
tgolen Jun 24, 2025
7ed27d5
Refactor parameters
tgolen Jun 24, 2025
eb0518a
Implement new parameter in all references
tgolen Jun 24, 2025
21e65e9
Add early return
tgolen Jun 24, 2025
b1419a0
Remove duplicate method
tgolen Jun 24, 2025
3823882
Remove RNVP onyx connection
tgolen Jun 24, 2025
730fd21
Update components to not use rNVPs if they don't have to
tgolen Jun 24, 2025
f6c97bf
Merge branch 'main' into tgolen-remove-rnvps-15
tgolen Jun 24, 2025
4a22d8a
Fix imports
tgolen Jun 25, 2025
7943bbe
Fix another lib import
tgolen Jun 25, 2025
f5d3c4e
Fix more imports
tgolen Jun 25, 2025
d8d1ad4
Fix imports
tgolen Jun 25, 2025
49343ba
Merge branch 'main' into tgolen-remove-rnvps-15
tgolen Jun 26, 2025
2aac630
Disable tests and fix one reference
tgolen Jun 26, 2025
b679ed6
Lint
tgolen Jun 26, 2025
d125f83
Merge branch 'main' into tgolen-remove-rnvps-15
tgolen Jun 26, 2025
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: 3 additions & 1 deletion src/components/AvatarWithDisplayName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type {ColorValue, TextStyle} from 'react-native';
import type {OnyxEntry} from 'react-native-onyx';
import type {ValueOf} from 'type-fest';
import useOnyx from '@hooks/useOnyx';
import useReportIsArchived from '@hooks/useReportIsArchived';
import useStyleUtils from '@hooks/useStyleUtils';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
Expand Down Expand Up @@ -188,7 +189,8 @@ function AvatarWithDisplayName({
const icons = getIcons(report, personalDetails, null, '', -1, policy, invoiceReceiverPolicy);
const ownerPersonalDetails = getPersonalDetailsForAccountIDs(report?.ownerAccountID ? [report.ownerAccountID] : [], personalDetails);
const displayNamesWithTooltips = getDisplayNamesWithTooltips(Object.values(ownerPersonalDetails), false);
const shouldShowSubscriptAvatar = shouldReportShowSubscript(report);
const isReportArchived = useReportIsArchived(report?.reportID);
const shouldShowSubscriptAvatar = shouldReportShowSubscript(report, isReportArchived);
const avatarBorderColor = avatarBorderColorProp ?? (isAnonymous ? theme.highlightBG : theme.componentBG);

const actorAccountID = useRef<number | null>(null);
Expand Down
4 changes: 2 additions & 2 deletions src/components/ReportWelcomeText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ function ReportWelcomeText({report, policy}: ReportWelcomeTextProps) {
const isPolicyExpenseChat = isPolicyExpenseChatReportUtils(report);
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
const [reportMetadata] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_METADATA}${report?.reportID || undefined}`, {canBeMissing: true});
const isReportArchived = useReportIsArchived(report?.reportID);
const isArchivedRoom = isArchivedNonExpenseReport(report, isReportArchived);
const isChatRoom = isChatRoomReportUtils(report);
const isSelfDM = isSelfDMReportUtils(report);
const isInvoiceRoom = isInvoiceRoomReportUtils(report);
Expand All @@ -59,9 +61,7 @@ function ReportWelcomeText({report, policy}: ReportWelcomeTextProps) {
const participantAccountIDs = getParticipantsAccountIDsForDisplay(report, undefined, true, true, reportMetadata);
const isMultipleParticipant = participantAccountIDs.length > 1;
const displayNamesWithTooltips = getDisplayNamesWithTooltips(getPersonalDetailsForAccountIDs(participantAccountIDs, personalDetails), isMultipleParticipant);
const isReportArchived = useReportIsArchived(report?.reportID);
const welcomeMessage = SidebarUtils.getWelcomeMessage(report, policy, isReportArchived);
const isArchivedRoom = isArchivedNonExpenseReport(report, isReportArchived);
const moneyRequestOptions = temporary_getMoneyRequestOptions(report, policy, participantAccountIDs);
const policyName = getPolicyName({report});

Expand Down
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ function createOption(accountIDs: number[], personalDetails: OnyxInputOrEntry<Pe
result.isMoneyRequestReport = reportUtilsIsMoneyRequestReport(report);
result.isThread = isChatThread(report);
result.isTaskReport = reportUtilsIsTaskReport(report);
result.shouldShowSubscript = shouldReportShowSubscript(report);
result.shouldShowSubscript = shouldReportShowSubscript(report, !!result.private_isArchived);
result.isPolicyExpenseChat = reportUtilsIsPolicyExpenseChat(report);
result.isOwnPolicyExpenseChat = report.isOwnPolicyExpenseChat ?? false;
result.allReportErrors = reportAttributesDerivedValue?.[report.reportID]?.reportErrors ?? {};
Expand Down
9 changes: 3 additions & 6 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2048,7 +2048,6 @@ function isClosedExpenseReportWithNoExpenses(report: OnyxEntry<Report>, transact
/**
* Whether the provided report is an archived room
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function isArchivedNonExpenseReport(report: OnyxInputOrEntry<Report> | SearchReport, isReportArchived = false): boolean {
return isReportArchived && !(isExpenseReport(report) || isExpenseRequest(report));
}
Expand Down Expand Up @@ -8351,7 +8350,7 @@ function getInvoiceChatByParticipants(receiverID: string | number, receiverType:
// eslint-disable-next-line deprecation/deprecation
const reportNameValuePairs = getReportNameValuePairs(report?.reportID);
const isReportArchived = isArchivedReport(reportNameValuePairs);
if (!report || !isInvoiceRoom(report) || isArchivedNonExpenseReportWithID(report, isReportArchived)) {
if (!report || !isInvoiceRoom(report) || isArchivedNonExpenseReport(report, isReportArchived)) {
return false;
}

Expand Down Expand Up @@ -8790,10 +8789,8 @@ function getWhisperDisplayNames(participantAccountIDs?: number[]): string | unde
/**
* Show subscript on expense chats / threads and expense requests
*/
function shouldReportShowSubscript(report: OnyxEntry<Report>): boolean {
// This will get removed as part of https://github.com/Expensify/App/issues/59961
// eslint-disable-next-line deprecation/deprecation
if (isArchivedNonExpenseReport(report, !!getReportNameValuePairs(report?.reportID)?.private_isArchived) && !isWorkspaceThread(report)) {
function shouldReportShowSubscript(report: OnyxEntry<Report>, isReportArchived = false): boolean {
if (isArchivedNonExpenseReport(report, isReportArchived) && !isWorkspaceThread(report)) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ function getOptionData({
result.isPolicyExpenseChat = isPolicyExpenseChat(report);
result.isExpenseRequest = isExpenseRequest(report);
result.isMoneyRequestReport = isMoneyRequestReport(report);
result.shouldShowSubscript = shouldReportShowSubscript(report);
result.shouldShowSubscript = shouldReportShowSubscript(report, !!result.private_isArchived);
result.pendingAction = report.pendingFields?.addWorkspaceRoom ?? report.pendingFields?.createChat;
result.brickRoadIndicator = reportAttributes?.brickRoadStatus;
result.ownerAccountID = report.ownerAccountID;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ReportParticipantsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function ReportParticipantsPage({report, route}: ReportParticipantsPageProps) {
const selectionListRef = useRef<SelectionListHandle>(null);
const textInputRef = useRef<TextInput>(null);
const [userSearchPhrase] = useOnyx(ONYXKEYS.ROOM_MEMBERS_USER_SEARCH_PHRASE, {canBeMissing: true});
const isReportArchived = useReportIsArchived(report?.reportID);
const [reportMetadata] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_METADATA}${report?.reportID}`, {canBeMissing: false});
const [reportAttributes] = useOnyx(ONYXKEYS.DERIVED.REPORT_ATTRIBUTES, {selector: (attributes) => attributes?.reports, canBeMissing: false});
const {selectionMode} = useMobileSelectionMode();
Expand All @@ -84,7 +85,6 @@ function ReportParticipantsPage({report, route}: ReportParticipantsPageProps) {
const {isOffline} = useNetwork();
const canSelectMultiple = isGroupChat && isCurrentUserAdmin && (isSmallScreenWidth ? selectionMode?.isEnabled : true);
const [searchValue, setSearchValue] = useState('');
const isReportArchived = useReportIsArchived(report?.reportID);

const {chatParticipants, personalDetailsParticipants} = useMemo(
() => getReportPersonalDetailsParticipants(report, personalDetails, reportMetadata),
Expand Down
4 changes: 2 additions & 2 deletions src/pages/home/HeaderView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ function HeaderView({report, parentReportAction, onNavigationMenuButtonClicked,
[firstDayFreeTrial, lastDayFreeTrial, hasTeam2025Pricing, reportNameValuePairs, subscriptionPlan],
);

const shouldShowSubscript = shouldReportShowSubscript(report);
const isArchived = isArchivedReport(reportNameValuePairs);
const shouldShowSubscript = shouldReportShowSubscript(report, isArchived);
const defaultSubscriptSize = isExpenseRequest(report) ? CONST.AVATAR_SIZE.SMALL_NORMAL : CONST.AVATAR_SIZE.DEFAULT;
const icons = getIcons(reportHeaderData, personalDetails, null, '', -1, policy, invoiceReceiverPolicy);
const brickRoadIndicator = hasReportNameError(report) ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : '';
Expand All @@ -224,7 +225,6 @@ function HeaderView({report, parentReportAction, onNavigationMenuButtonClicked,
const [onboardingPurposeSelected] = useOnyx(ONYXKEYS.ONBOARDING_PURPOSE_SELECTED, {canBeMissing: true});
const isChatUsedForOnboarding = isChatUsedForOnboardingReportUtils(report, onboardingPurposeSelected);
const shouldShowRegisterForWebinar = introSelected?.companySize === CONST.ONBOARDING_COMPANY_SIZE.MICRO && (isChatUsedForOnboarding || isAdminRoom(report));
const isArchived = isArchivedReport(reportNameValuePairs);
const shouldShowOnBoardingHelpDropdownButton = (shouldShowRegisterForWebinar || shouldShowGuideBooking) && !isArchived;
const shouldShowEarlyDiscountBanner = shouldShowDiscount && isChatUsedForOnboarding;
const latestScheduledCall = reportNameValuePairs?.calendlyCalls?.at(-1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
chatIncludesChronosWithID,
getSourceIDFromReportAction,
isArchivedNonExpenseReport,
isArchivedNonExpenseReportWithID,
isInvoiceReport as ReportUtilsIsInvoiceReport,
isMoneyRequest as ReportUtilsIsMoneyRequest,
isMoneyRequestReport as ReportUtilsIsMoneyRequestReport,
Expand Down Expand Up @@ -190,9 +189,8 @@ function BaseReportActionContextMenu({
}, [parentReportAction, isMoneyRequestReport, isInvoiceReport, paginatedReportActions, transactionThreadReport?.parentReportActionID]);

const moneyRequestAction = transactionThreadReportID ? requestParentReportAction : parentReportAction;

const [childReportNameValuePairs] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${childReport?.reportID}`, {canBeMissing: true});
const [parentReportNameValuePairs] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${childReport?.parentReportID}`, {canBeMissing: true});
const isChildReportArchived = useReportIsArchived(childReport?.reportID);
const isParentReportArchived = useReportIsArchived(childReport?.parentReportID);
const [parentReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${childReport?.parentReportID}`, {canBeMissing: true});

const isMoneyRequest = useMemo(() => ReportUtilsIsMoneyRequest(childReport), [childReport]);
Expand All @@ -203,10 +201,7 @@ function BaseReportActionContextMenu({
const areHoldRequirementsMet =
!isInvoiceReport &&
isMoneyRequestOrReport &&
!isArchivedNonExpenseReport(
transactionThreadReportID ? childReport : parentReport,
transactionThreadReportID ? !!childReportNameValuePairs?.private_isArchived : !!parentReportNameValuePairs?.private_isArchived,
);
!isArchivedNonExpenseReport(transactionThreadReportID ? childReport : parentReport, transactionThreadReportID ? isChildReportArchived : isParentReportArchived);

const shouldEnableArrowNavigation = !isMini && (isVisible || shouldKeepOpen);
let filteredContextMenuActions = ContextMenuActions.filter(
Expand Down Expand Up @@ -300,7 +295,7 @@ function BaseReportActionContextMenu({
report: {
reportID,
originalReportID,
isArchivedRoom: isArchivedNonExpenseReportWithID(originalReport, isOriginalReportArchived),
isArchivedRoom: isArchivedNonExpenseReport(originalReport, isOriginalReportArchived),
isChronos: chatIncludesChronosWithID(originalReportID),
},
reportAction: {
Expand Down
3 changes: 1 addition & 2 deletions src/pages/home/report/PureReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1236,8 +1236,7 @@ function PureReportActionItem({
index={index}
ref={composerTextInputRef}
shouldDisableEmojiPicker={
(chatIncludesConcierge(report) && isBlockedFromConcierge(blockedFromConcierge)) ||
isArchivedNonExpenseReport(report, !!reportNameValuePairs?.private_isArchived)
(chatIncludesConcierge(report) && isBlockedFromConcierge(blockedFromConcierge)) || isArchivedNonExpenseReport(report, isArchivedRoom)
}
isGroupPolicyReport={!!report?.policyID && report.policyID !== CONST.POLICY.ID_FAKE}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/home/report/ReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
getOriginalReportID,
getReimbursementDeQueuedOrCanceledActionMessage,
getTransactionsWithReceipts,
isArchivedNonExpenseReportWithID,
isArchivedNonExpenseReport,
isChatThread,
isClosedExpenseReportWithNoExpenses,
isCurrentUserTheOnlyParticipant,
Expand Down Expand Up @@ -106,7 +106,7 @@ function ReportActionItem({allReports, action, report, transactions, shouldShowD
blockedFromConcierge={blockedFromConcierge}
originalReportID={originalReportID}
deleteReportActionDraft={deleteReportActionDraft}
isArchivedRoom={isArchivedNonExpenseReportWithID(originalReport, isOriginalReportArchived)}
isArchivedRoom={isArchivedNonExpenseReport(originalReport, isOriginalReportArchived)}
isChronosReport={chatIncludesChronosWithID(originalReportID)}
toggleEmojiReaction={toggleEmojiReaction}
createDraftTransactionAndNavigateToParticipantSelector={createDraftTransactionAndNavigateToParticipantSelector}
Expand Down
3 changes: 2 additions & 1 deletion src/pages/home/report/ReportFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ function ReportFooter({
},
canBeMissing: true,
});
const isReportArchived = useReportIsArchived(report?.reportID);

const chatFooterStyles = {...styles.chatFooter, minHeight: !isOffline ? CONST.CHAT_FOOTER_MIN_HEIGHT : 0};
const isReportArchived = useReportIsArchived(report?.reportID);
const isArchivedRoom = isArchivedNonExpenseReport(report, isReportArchived);

const isSmallSizeLayout = windowWidth - (shouldUseNarrowLayout ? 0 : variables.sideBarWithLHBWidth) < variables.anonymousReportFooterBreakpoint;
Expand Down
23 changes: 8 additions & 15 deletions src/pages/settings/Report/NotificationPreferencePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,11 @@ import RadioListItem from '@components/SelectionList/RadioListItem';
import useLocalize from '@hooks/useLocalize';
import useReportIsArchived from '@hooks/useReportIsArchived';
import type {PlatformStackRouteProp, PlatformStackScreenProps} from '@libs/Navigation/PlatformStackNavigation/types';
import {
getReportNotificationPreference,
goBackToDetailsPage,
isArchivedNonExpenseReport,
isHiddenForCurrentUser,
isMoneyRequestReport as isMoneyRequestReportUtils,
isSelfDM,
} from '@libs/ReportUtils';
import {getReportNotificationPreference, goBackToDetailsPage, isArchivedNonExpenseReport, isHiddenForCurrentUser, isMoneyRequestReport, isSelfDM} from '@libs/ReportUtils';
import type {ReportSettingsNavigatorParamList} from '@navigation/types';
import withReportOrNotFound from '@pages/home/report/withReportOrNotFound';
import type {WithReportOrNotFoundProps} from '@pages/home/report/withReportOrNotFound';
import {updateNotificationPreference as updateNotificationPreferenceReportActionUtils} from '@userActions/Report';
import {updateNotificationPreference} from '@userActions/Report';
import CONST from '@src/CONST';
import type SCREENS from '@src/SCREENS';

Expand All @@ -29,11 +22,11 @@ type NotificationPreferencePageProps = WithReportOrNotFoundProps & PlatformStack
function NotificationPreferencePage({report}: NotificationPreferencePageProps) {
const route = useRoute<PlatformStackRouteProp<ReportSettingsNavigatorParamList, typeof SCREENS.REPORT_SETTINGS.NOTIFICATION_PREFERENCES>>();
const {translate} = useLocalize();
const isMoneyRequestReport = isMoneyRequestReportUtils(report);
const currentNotificationPreference = getReportNotificationPreference(report);
const isReportArchived = useReportIsArchived(report?.reportID);
const isMoneyRequest = isMoneyRequestReport(report);
const currentNotificationPreference = getReportNotificationPreference(report);
const shouldDisableNotificationPreferences =
isArchivedNonExpenseReport(report, isReportArchived) || isSelfDM(report) || (!isMoneyRequestReport && isHiddenForCurrentUser(currentNotificationPreference));
isArchivedNonExpenseReport(report, isReportArchived) || isSelfDM(report) || (!isMoneyRequest && isHiddenForCurrentUser(currentNotificationPreference));
const notificationPreferenceOptions = Object.values(CONST.REPORT.NOTIFICATION_PREFERENCE)
.filter((pref) => !isHiddenForCurrentUser(pref))
.map((preference) => ({
Expand All @@ -47,9 +40,9 @@ function NotificationPreferencePage({report}: NotificationPreferencePageProps) {
goBackToDetailsPage(report, route.params.backTo);
}, [report, route.params.backTo]);

const updateNotificationPreference = useCallback(
const updateNotificationPreferenceForReportAction = useCallback(
(value: ValueOf<typeof CONST.REPORT.NOTIFICATION_PREFERENCE>) => {
updateNotificationPreferenceReportActionUtils(report.reportID, currentNotificationPreference, value, undefined, undefined);
updateNotificationPreference(report.reportID, currentNotificationPreference, value, undefined, undefined);
goBack();
},
[report.reportID, currentNotificationPreference, goBack],
Expand All @@ -68,7 +61,7 @@ function NotificationPreferencePage({report}: NotificationPreferencePageProps) {
<SelectionList
sections={[{data: notificationPreferenceOptions}]}
ListItem={RadioListItem}
onSelectRow={(option) => updateNotificationPreference(option.value)}
onSelectRow={(option) => updateNotificationPreferenceForReportAction(option.value)}
shouldSingleExecuteRowSelect
initiallyFocusedOptionKey={notificationPreferenceOptions.find((locale) => locale.isSelected)?.keyForList}
/>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/settings/Report/VisibilityPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ function VisibilityPage({report}: VisibilityProps) {
const route = useRoute<PlatformStackRouteProp<ReportSettingsNavigatorParamList, typeof SCREENS.REPORT_SETTINGS.VISIBILITY>>();
const [showConfirmModal, setShowConfirmModal] = useState(false);
const shouldGoBackToDetailsPage = useRef(false);

const isReportArchived = useReportIsArchived(report?.reportID);
const shouldDisableVisibility = isArchivedNonExpenseReport(report, isReportArchived);

const {translate} = useLocalize();

const visibilityOptions = useMemo(
Expand Down
2 changes: 1 addition & 1 deletion tests/actions/IOUTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ import * as InvoiceData from '../data/Invoice';
import type {InvoiceTestData} from '../data/Invoice';
import createRandomPolicy, {createCategoryTaxExpenseRules} from '../utils/collections/policies';
import createRandomPolicyCategories from '../utils/collections/policyCategory';
import createRandomReport from '../utils/collections/reports';
import {createRandomReport} from '../utils/collections/reports';
import createRandomTransaction from '../utils/collections/transaction';
import getOnyxValue from '../utils/getOnyxValue';
import PusherHelper from '../utils/PusherHelper';
Expand Down
2 changes: 1 addition & 1 deletion tests/actions/PolicyMemberTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {isEmptyObject} from '@src/types/utils/EmptyObject';
import createPersonalDetails from '../utils/collections/personalDetails';
import createRandomPolicy from '../utils/collections/policies';
import createRandomReportAction from '../utils/collections/reportActions';
import createRandomReport from '../utils/collections/reports';
import {createRandomReport} from '../utils/collections/reports';
import * as TestHelper from '../utils/TestHelper';
import type {MockFetch} from '../utils/TestHelper';
import waitForBatchedUpdates from '../utils/waitForBatchedUpdates';
Expand Down
2 changes: 1 addition & 1 deletion tests/actions/PolicyTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ONYXKEYS from '@src/ONYXKEYS';
import type {Onboarding, Policy as PolicyType, Report, ReportAction, ReportActions, TransactionViolations} from '@src/types/onyx';
import type {Participant} from '@src/types/onyx/Report';
import createRandomPolicy from '../utils/collections/policies';
import createRandomReport from '../utils/collections/reports';
import {createRandomReport} from '../utils/collections/reports';
import * as TestHelper from '../utils/TestHelper';
import type {MockFetch} from '../utils/TestHelper';
import waitForBatchedUpdates from '../utils/waitForBatchedUpdates';
Expand Down
Loading