Skip to content

Commit 71fd837

Browse files
authored
Merge pull request #85344 from shubham1206agra/refactor-RoomInvitePage
Migrated RoomInvitePage.tsx from useOptionsList to usePersonalDetailOptions
2 parents 8e65655 + 0c994b2 commit 71fd837

File tree

4 files changed

+107
-455
lines changed

4 files changed

+107
-455
lines changed

src/libs/OptionsListUtils/index.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,35 +2851,6 @@ function formatMemberForList(member: SearchOptionData): MemberForList {
28512851
};
28522852
}
28532853

2854-
/**
2855-
* Build the options for the Workspace Member Invite view
2856-
* This method will be removed. See https://github.com/Expensify/App/issues/66615 for more information.
2857-
*/
2858-
function getMemberInviteOptions(
2859-
personalDetails: Array<SearchOption<PersonalDetails>>,
2860-
nvpDismissedProductTraining: OnyxEntry<DismissedProductTraining>,
2861-
loginList: OnyxEntry<Login>,
2862-
currentUserAccountID: number,
2863-
currentUserEmail: string,
2864-
personalDetailsCollection: OnyxEntry<PersonalDetailsList>,
2865-
betas: Beta[] = [],
2866-
excludeLogins: Record<string, boolean> = {},
2867-
includeSelectedOptions = false,
2868-
countryCode: number = CONST.DEFAULT_COUNTRY_CODE,
2869-
): Options {
2870-
return getValidOptions({personalDetails, reports: []}, undefined, undefined, nvpDismissedProductTraining, loginList, currentUserAccountID, currentUserEmail, {
2871-
betas,
2872-
includeP2P: true,
2873-
excludeLogins,
2874-
includeSelectedOptions,
2875-
includeRecentReports: false,
2876-
searchString: '',
2877-
maxElements: undefined,
2878-
personalDetails: personalDetailsCollection,
2879-
countryCode,
2880-
});
2881-
}
2882-
28832854
/**
28842855
* Helper method that returns the text to be used for the header's message and title (if any)
28852856
*/
@@ -3423,7 +3394,6 @@ export {
34233394
getLastActorDisplayNameFromLastVisibleActions,
34243395
getLastMessageTextForReport,
34253396
getManagerMcTestParticipant,
3426-
getMemberInviteOptions,
34273397
getParticipantsOption,
34283398
getPersonalDetailSearchTerms,
34293399
getPersonalDetailsForAccountIDs,

0 commit comments

Comments
 (0)