Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
543ed1d
Removal of backTo
OlGierd03 Sep 25, 2025
0c68d1c
Fix of RoutesValidationError in ROUTES
OlGierd03 Sep 26, 2025
09586e9
Merge branch 'main' into @OlGierd03/settlement-button-remove-back-to-…
OlGierd03 Sep 26, 2025
56bbf84
Fix backTo type error in SearchHoldReasonPage
OlGierd03 Sep 26, 2025
96cfe3f
Cleaned getRoutes code
OlGierd03 Sep 29, 2025
b2894ba
Create SettlementButtonUtils to separate logic and reduce number of i…
OlGierd03 Sep 29, 2025
5155579
Warn about navigation fail
OlGierd03 Oct 1, 2025
42a6ab9
Add props type SearchHoldReasonPageProps
OlGierd03 Oct 1, 2025
2ed0b49
Name props type correctly
OlGierd03 Oct 1, 2025
7787465
Name props type correctly
OlGierd03 Oct 1, 2025
27bba3d
Name props type correctly
OlGierd03 Oct 1, 2025
03ead68
Remove unnecessary as const
OlGierd03 Oct 1, 2025
4dd0cf3
Make string reportID to not have a default
OlGierd03 Oct 1, 2025
dadcb86
Make string reportID to not have a default
OlGierd03 Oct 1, 2025
057d057
Rename function for better description
OlGierd03 Oct 1, 2025
9165bb8
Merge branch 'main' into @OlGierd03/settlement-button-remove-back-to-…
OlGierd03 Oct 1, 2025
0d2be77
Extract RouteMappings logic from handleUnvalidatedUserNavigation
OlGierd03 Oct 1, 2025
e0334b9
Add SettlementButtonUtils tests
OlGierd03 Oct 2, 2025
c2a4d81
Divide route mappings from getRouteMappings into nonReportId and repo…
OlGierd03 Oct 2, 2025
93fae1b
Move optional props to the end of both handleUnvalidatedUserNavigatio…
OlGierd03 Oct 2, 2025
a907e4f
Add a jsdoc comment for both getRouteMappings and handleUnvalidatedUs…
OlGierd03 Oct 3, 2025
6a519b7
Reduce code repetitiveness by using test.each in SettlementButtonUtil…
OlGierd03 Oct 3, 2025
45ee8ab
Move SettlementButton payment methods to SettlementButtonUtils for Re…
OlGierd03 Oct 6, 2025
f1d9727
Add VERIFY_ACCOUNT screens to SEARCH_TO_RHP mapping for correct relat…
OlGierd03 Oct 7, 2025
083a2c9
Merge main and change the Navigator that handles SEARCH.REPORT_VERIFY…
OlGierd03 Oct 15, 2025
1530f78
Add jsdoc for getSettlementButtonPaymentMethods from SettlementButton…
OlGierd03 Oct 15, 2025
44a2fca
Delete MoneyRequestCreateVerifyAccountPage because of the change in S…
OlGierd03 Oct 15, 2025
c3d209c
Merge branch 'main' into @OlGierd03/settlement-button-remove-back-to-…
OlGierd03 Oct 15, 2025
b9da3c9
Merge branch 'main' into @OlGierd03/settlement-button-remove-back-to-…
OlGierd03 Oct 22, 2025
fb88931
Merge main and remove useCallback as reportID/chatReportID dependenci…
OlGierd03 Oct 28, 2025
32e1280
Bring useCallback back as the 'checkForNecessaryAction' function make…
OlGierd03 Oct 28, 2025
74fab07
Add useCallback missing dependency: 'showLockedAccountModal'
OlGierd03 Oct 28, 2025
0bd0139
Make ConstantPicker use new SelectionList
OlGierd03 Oct 29, 2025
5284799
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
OlGierd03 Oct 29, 2025
1bfa238
Merge branch 'main' of github.com:software-mansion-labs/expensify-app…
OlGierd03 Oct 30, 2025
396ea83
Merge main and resolve SearchHoldReasonPageProps related conflict
OlGierd03 Oct 30, 2025
a0b340d
Add displayName prop to new VerifyAccountPages
OlGierd03 Oct 30, 2025
280830d
Revert changes made to ConstantPicker
OlGierd03 Oct 30, 2025
2af58e1
Add getSettlementButtonPaymentMethods tests and rename handleUnvalida…
OlGierd03 Oct 31, 2025
11beaa4
Use getSettlementButtonPaymentMethods in useBulkPayOptions
OlGierd03 Nov 3, 2025
cf5a7d9
Merge main and resolve conflict of different checkForNecessaryAction …
OlGierd03 Nov 3, 2025
0d38c7f
Add suitable SearchHoldReasonPage props type
OlGierd03 Nov 3, 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
41 changes: 34 additions & 7 deletions src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const ROUTES = {
return `search?q=${encodeURIComponent(query)}${name ? `&name=${name}` : ''}` as const;
},
},
SEARCH_ROOT_VERIFY_ACCOUNT: `search/${VERIFY_ACCOUNT}`,
SEARCH_SAVED_SEARCH_RENAME: {
route: 'search/saved-search/rename',
getRoute: ({name, jsonQuery}: {name: string; jsonQuery: SearchQueryString}) => `search/saved-search/rename?name=${name}&q=${jsonQuery}` as const,
Expand All @@ -83,6 +84,10 @@ const ROUTES = {
return getUrlWithBackToParam(baseRoute, backTo);
},
},
SEARCH_REPORT_VERIFY_ACCOUNT: {
route: `search/view/:reportID/${VERIFY_ACCOUNT}`,
getRoute: (reportID: string) => `search/view/${reportID}/${VERIFY_ACCOUNT}` as const,
},
SEARCH_MONEY_REQUEST_REPORT: {
route: 'search/r/:reportID',
getRoute: ({reportID, backTo}: {reportID: string; backTo?: string}) => {
Expand All @@ -92,6 +97,10 @@ const ROUTES = {
return getUrlWithBackToParam(baseRoute, backTo);
},
},
SEARCH_MONEY_REQUEST_REPORT_VERIFY_ACCOUNT: {
route: `search/r/:reportID/${VERIFY_ACCOUNT}`,
getRoute: (reportID: string) => `search/r/${reportID}/${VERIFY_ACCOUNT}` as const,
},
SEARCH_MONEY_REQUEST_REPORT_HOLD_TRANSACTIONS: {
route: 'search/r/:reportID/hold',
getRoute: ({reportID, backTo}: {reportID: string; backTo?: string}) => {
Expand Down Expand Up @@ -537,6 +546,10 @@ const ROUTES = {
return getUrlWithBackToParam(`r/${reportID}/details/shareCode` as const, backTo);
},
},
REPORT_VERIFY_ACCOUNT: {
route: `r/:reportID/${VERIFY_ACCOUNT}`,
getRoute: (reportID: string) => `r/${reportID}/${VERIFY_ACCOUNT}` as const,
},
REPORT_PARTICIPANTS: {
route: 'r/:reportID/participants',

Expand Down Expand Up @@ -735,8 +748,12 @@ const ROUTES = {
},
MONEY_REQUEST_CREATE: {
route: ':action/:iouType/start/:transactionID/:reportID/:backToReport?',
getRoute: (action: IOUAction, iouType: IOUType, transactionID: string, reportID: string, backToReport?: string) =>
`${action as string}/${iouType as string}/start/${transactionID}/${reportID}/${backToReport ?? ''}` as const,
getRoute: (action: IOUAction, iouType: IOUType, transactionID: string, reportID: string, backToReport?: string) => {
if (backToReport) {
return `${action as string}/${iouType as string}/start/${transactionID}/${reportID}/${backToReport}` as const;
}
return `${action as string}/${iouType as string}/start/${transactionID}/${reportID}` as const;
},
},
MONEY_REQUEST_STEP_SEND_FROM: {
route: 'create/:iouType/from/:transactionID/:reportID',
Expand All @@ -752,12 +769,22 @@ const ROUTES = {
},
MONEY_REQUEST_STEP_CONFIRMATION: {
route: ':action/:iouType/confirmation/:transactionID/:reportID/:backToReport?',
getRoute: (action: IOUAction, iouType: IOUType, transactionID: string, reportID: string | undefined, backToReport?: string, participantsAutoAssigned?: boolean, backTo?: string) =>
getRoute: (action: IOUAction, iouType: IOUType, transactionID: string, reportID: string | undefined, backToReport?: string, participantsAutoAssigned?: boolean, backTo?: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to też tak jak było wcześniej bylo ok

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the same case as the one above

let optionalRoutePart = '';
if (backToReport !== undefined) {
optionalRoutePart += `/${backToReport}`;
}
if (participantsAutoAssigned !== undefined) {
optionalRoutePart += '?participantsAutoAssigned=true';
}
// eslint-disable-next-line no-restricted-syntax -- Legacy route generation
getUrlWithBackToParam(
`${action as string}/${iouType as string}/confirmation/${transactionID}/${reportID}/${backToReport ?? ''}${participantsAutoAssigned ? '?participantsAutoAssigned=true' : ''}`,
backTo,
),
return getUrlWithBackToParam(`${action as string}/${iouType as string}/confirmation/${transactionID}/${reportID}${optionalRoutePart}` as const, backTo);
},
},
MONEY_REQUEST_STEP_CONFIRMATION_VERIFY_ACCOUNT: {
route: `:action/:iouType/confirmation/:transactionID/:reportID/${VERIFY_ACCOUNT}`,
getRoute: (action: IOUAction, iouType: IOUType, transactionID: string, reportID: string) =>
`${action as string}/${iouType as string}/confirmation/${transactionID}/${reportID}/${VERIFY_ACCOUNT}` as const,
},
MONEY_REQUEST_STEP_AMOUNT: {
route: ':action/:iouType/amount/:transactionID/:reportID/:reportActionID?/:pageIndex?/:backToReport?',
Expand Down
6 changes: 6 additions & 0 deletions src/SCREENS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ const SCREENS = {
},
SEARCH: {
ROOT: 'Search_Root',
ROOT_VERIFY_ACCOUNT: 'Search_Root_Verify_Account',
MONEY_REQUEST_REPORT: 'Search_Money_Request_Report',
MONEY_REQUEST_REPORT_VERIFY_ACCOUNT: 'Search_Money_Request_Report_Verify_Account',
MONEY_REQUEST_REPORT_HOLD_TRANSACTIONS: 'Search_Money_Request_Report_Hold_Transactions',
REPORT_RHP: 'Search_Report_RHP',
REPORT_VERIFY_ACCOUNT: 'Search_Report_Verify_Account',
ADVANCED_FILTERS_RHP: 'Search_Advanced_Filters_RHP',
ADVANCED_FILTERS_TYPE_RHP: 'Search_Advanced_Filters_Type_RHP',
ADVANCED_FILTERS_GROUP_BY_RHP: 'Search_Advanced_Filters_GroupBy_RHP',
Expand Down Expand Up @@ -253,6 +256,7 @@ const SCREENS = {
ADD_UNREPORTED_EXPENSE: 'AddUnreportedExpense',
SCHEDULE_CALL: 'ScheduleCall',
REPORT_CHANGE_APPROVER: 'Report_Change_Approver',
REPORT_VERIFY_ACCOUNT: 'Report_Verify_Account',
MERGE_TRANSACTION: 'MergeTransaction',
},
PUBLIC_CONSOLE_DEBUG: 'Console_Debug',
Expand All @@ -268,6 +272,7 @@ const SCREENS = {
HOLD: 'Money_Request_Hold_Reason',
REJECT: 'Money_Request_Reject_Reason',
STEP_CONFIRMATION: 'Money_Request_Step_Confirmation',
STEP_CONFIRMATION_VERIFY_ACCOUNT: 'Money_Request_Step_Confirmation_Verify_Account',
START: 'Money_Request_Start',
STEP_UPGRADE: 'Money_Request_Step_Upgrade',
STEP_AMOUNT: 'Money_Request_Step_Amount',
Expand Down Expand Up @@ -783,6 +788,7 @@ const SCREENS = {
REIMBURSEMENT_ACCOUNT: 'ReimbursementAccount',
REIMBURSEMENT_ACCOUNT_ENTER_SIGNER_INFO: 'Reimbursement_Account_Signer_Info',
REFERRAL_DETAILS: 'Referral_Details',
REPORT_VERIFY_ACCOUNT: 'Report_Verify_Account',
KEYBOARD_SHORTCUTS: 'KeyboardShortcuts',
SHARE: {
ROOT: 'Share_Root',
Expand Down
24 changes: 4 additions & 20 deletions src/components/SettlementButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
isInvoiceReport as isInvoiceReportUtil,
isIOUReport,
} from '@libs/ReportUtils';
import {getSettlementButtonPaymentMethods, handleUnvalidatedUserNavigation} from '@libs/SettlementButtonUtils';
import {shouldRestrictUserBillableActions} from '@libs/SubscriptionUtils';
import {setPersonalBankAccountContinueKYCOnSuccess} from '@userActions/BankAccounts';
import {approveMoneyRequest} from '@userActions/IOU';
Expand Down Expand Up @@ -179,7 +180,7 @@ function SettlementButton({
}

if (!isUserValidated) {
Navigation.navigate(ROUTES.SETTINGS_CONTACT_METHOD_VERIFY_ACCOUNT.getRoute(Navigation.getActiveRoute()));
handleUnvalidatedUserNavigation(chatReportID, reportID);
return true;
}

Expand All @@ -189,7 +190,7 @@ function SettlementButton({
}

return false;
}, [isAccountLocked, isUserValidated, policy, showLockedAccountModal]);
}, [policy, isAccountLocked, isUserValidated, chatReportID, reportID, showLockedAccountModal]);

const getPaymentSubitems = useCallback(
(payAsBusiness: boolean) => {
Expand Down Expand Up @@ -225,24 +226,7 @@ function SettlementButton({

const paymentButtonOptions = useMemo(() => {
const buttonOptions = [];
const paymentMethods = {
[CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT]: {
text: hasActivatedWallet ? translate('iou.settleWallet', {formattedAmount: ''}) : translate('iou.settlePersonal', {formattedAmount: ''}),
icon: Expensicons.User,
value: CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT,
},
[CONST.PAYMENT_METHODS.BUSINESS_BANK_ACCOUNT]: {
text: translate('iou.settleBusiness', {formattedAmount: ''}),
icon: Expensicons.Building,
value: CONST.PAYMENT_METHODS.BUSINESS_BANK_ACCOUNT,
},
[CONST.IOU.PAYMENT_TYPE.ELSEWHERE]: {
text: translate('iou.payElsewhere', {formattedAmount: ''}),
icon: Expensicons.CheckCircle,
value: CONST.IOU.PAYMENT_TYPE.ELSEWHERE,
shouldUpdateSelectedIndex: false,
},
};
const paymentMethods = getSettlementButtonPaymentMethods(hasActivatedWallet, translate);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one. I think we also have a few other places (useBulkPayOptions and usePaymentOptions I think 🤔 ) where we can reuse this function. Could you please update these places too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do 😃

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated useBulkPayOperations. However, usePaymentOptions has significantly different elements and getSettlementButtonPaymentMethods can't be reused there

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. I'm also working on a similar issue related to usePaymentOptions, so I can handle it 👍


const shortFormPayElsewhereButton = {
text: translate('iou.pay'),
Expand Down
21 changes: 3 additions & 18 deletions src/hooks/useBulkPayOptions.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import truncate from 'lodash/truncate';
import {useMemo} from 'react';
import {Bank, Building, CheckCircle, User, Wallet} from '@components/Icon/Expensicons';
import {Bank, Building, Wallet} from '@components/Icon/Expensicons';
import type {PopoverMenuItem} from '@components/PopoverMenu';
import type {BankAccountMenuItem} from '@components/Search/types';
import {formatPaymentMethods} from '@libs/PaymentUtils';
import {hasRequestFromCurrentAccount} from '@libs/ReportActionsUtils';
import {isExpenseReport as isExpenseReportUtil, isInvoiceReport as isInvoiceReportUtil, isIOUReport as isIOUReportUtil} from '@libs/ReportUtils';
import {getSettlementButtonPaymentMethods} from '@libs/SettlementButtonUtils';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import type {AccountData, Policy} from '@src/types/onyx';
Expand Down Expand Up @@ -81,23 +82,7 @@ function useBulkPayOptions({selectedPolicyID, selectedReportID, activeAdminPolic

const bulkPayButtonOptions = useMemo(() => {
const buttonOptions = [];
const paymentMethods = {
[CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT]: {
text: hasActivatedWallet ? translate('iou.settleWallet', {formattedAmount: ''}) : translate('iou.settlePersonal', {formattedAmount: ''}),
icon: User,
key: CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT,
},
[CONST.PAYMENT_METHODS.BUSINESS_BANK_ACCOUNT]: {
text: translate('iou.settleBusiness', {formattedAmount: ''}),
icon: Building,
key: CONST.PAYMENT_METHODS.BUSINESS_BANK_ACCOUNT,
},
[CONST.IOU.PAYMENT_TYPE.ELSEWHERE]: {
text: translate('iou.payElsewhere', {formattedAmount: ''}),
icon: CheckCircle,
key: CONST.IOU.PAYMENT_TYPE.ELSEWHERE,
},
};
const paymentMethods = getSettlementButtonPaymentMethods(hasActivatedWallet, translate);

if (!selectedReportID || !selectedPolicyID) {
return undefined;
Expand Down
10 changes: 10 additions & 0 deletions src/libs/Navigation/AppNavigator/ModalStackNavigators/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import type {
ReportDescriptionNavigatorParamList,
ReportDetailsNavigatorParamList,
ReportSettingsNavigatorParamList,
ReportVerifyAccountNavigatorParamList,
RoomMembersNavigatorParamList,
ScheduleCallParamList,
SearchAdvancedFiltersParamList,
Expand Down Expand Up @@ -144,6 +145,7 @@ const MoneyRequestModalStackNavigator = createModalStackNavigator<MoneyRequestNa
[SCREENS.MONEY_REQUEST.START]: () => require<ReactComponentModule>('../../../../pages/iou/request/IOURequestRedirectToStartPage').default,
[SCREENS.MONEY_REQUEST.CREATE]: () => require<ReactComponentModule>('../../../../pages/iou/request/IOURequestStartPage').default,
[SCREENS.MONEY_REQUEST.STEP_CONFIRMATION]: () => require<ReactComponentModule>('../../../../pages/iou/request/step/IOURequestStepConfirmation').default,
[SCREENS.MONEY_REQUEST.STEP_CONFIRMATION_VERIFY_ACCOUNT]: () => require<ReactComponentModule>('../../../../pages/iou/request/step/MoneyRequestStepConfirmationVerifyAccountPage').default,
[SCREENS.MONEY_REQUEST.STEP_AMOUNT]: () => require<ReactComponentModule>('../../../../pages/iou/request/step/IOURequestStepAmount').default,
[SCREENS.MONEY_REQUEST.STEP_TAX_AMOUNT]: () => require<ReactComponentModule>('../../../../pages/iou/request/step/IOURequestStepTaxAmountPage').default,
[SCREENS.MONEY_REQUEST.STEP_TAX_RATE]: () => require<ReactComponentModule>('../../../../pages/iou/request/step/IOURequestStepTaxRatePage').default,
Expand Down Expand Up @@ -255,6 +257,11 @@ const TaskModalStackNavigator = createModalStackNavigator<TaskDetailsNavigatorPa
[SCREENS.TASK.ASSIGNEE]: () => require<ReactComponentModule>('../../../../pages/tasks/TaskAssigneeSelectorModal').default,
});

const ReportVerifyAccountModalStackNavigator = createModalStackNavigator<ReportVerifyAccountNavigatorParamList>({
[SCREENS.REPORT_VERIFY_ACCOUNT]: () => require<ReactComponentModule>('../../../../pages/home/report/ReportVerifyAccountPage').default,
[SCREENS.SEARCH.REPORT_VERIFY_ACCOUNT]: () => require<ReactComponentModule>('../../../../pages/Search/SearchReportVerifyAccountPage').default,
});

const ReportDescriptionModalStackNavigator = createModalStackNavigator<ReportDescriptionNavigatorParamList>({
[SCREENS.REPORT_DESCRIPTION_ROOT]: () => require<ReactComponentModule>('../../../../pages/ReportDescriptionPage').default,
});
Expand Down Expand Up @@ -832,6 +839,8 @@ const MergeTransactionStackNavigator = createModalStackNavigator<MergeTransactio

const SearchReportModalStackNavigator = createModalStackNavigator<SearchReportParamList>({
[SCREENS.SEARCH.REPORT_RHP]: () => require<ReactComponentModule>('../../../../pages/home/ReportScreen').default,
[SCREENS.SEARCH.ROOT_VERIFY_ACCOUNT]: () => require<ReactComponentModule>('../../../../pages/Search/SearchRootVerifyAccountPage').default,
[SCREENS.SEARCH.MONEY_REQUEST_REPORT_VERIFY_ACCOUNT]: () => require<ReactComponentModule>('../../../../pages/Search/SearchMoneyRequestReportVerifyAccountPage').default,
[SCREENS.SEARCH.MONEY_REQUEST_REPORT_HOLD_TRANSACTIONS]: () => require<ReactComponentModule>('../../../../pages/Search/SearchHoldReasonPage').default,
[SCREENS.SEARCH.TRANSACTION_HOLD_REASON_RHP]: () => require<ReactComponentModule>('../../../../pages/Search/SearchHoldReasonPage').default,
[SCREENS.SEARCH.TRANSACTIONS_CHANGE_REPORT_SEARCH_RHP]: () => require<ReactComponentModule>('../../../../pages/Search/SearchTransactionsChangeReport').default,
Expand Down Expand Up @@ -950,6 +959,7 @@ export {
DomainCardModalStackNavigator,
SplitDetailsModalStackNavigator,
TaskModalStackNavigator,
ReportVerifyAccountModalStackNavigator,
WalletStatementStackNavigator,
TransactionDuplicateStackNavigator,
SearchReportModalStackNavigator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ function RightModalNavigator({navigation, route}: RightModalNavigatorProps) {
name={SCREENS.RIGHT_MODAL.REPORT_DESCRIPTION}
component={ModalStackNavigators.ReportDescriptionModalStackNavigator}
/>
<Stack.Screen
name={SCREENS.RIGHT_MODAL.REPORT_VERIFY_ACCOUNT}
component={ModalStackNavigators.ReportVerifyAccountModalStackNavigator}
/>
<Stack.Screen
name={SCREENS.RIGHT_MODAL.SETTINGS_CATEGORIES}
component={ModalStackNavigators.CategoriesModalStackNavigator}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import SCREENS from '@src/SCREENS';
// This file is used to define RHP screens that are in relation to the search screen.
const SEARCH_TO_RHP: Partial<Record<keyof SearchFullscreenNavigatorParamList, string[]>> = {
[SCREENS.SEARCH.ROOT]: [
SCREENS.SEARCH.ROOT_VERIFY_ACCOUNT,
SCREENS.SEARCH.ADVANCED_FILTERS_TYPE_RHP,
SCREENS.SEARCH.ADVANCED_FILTERS_GROUP_BY_RHP,
SCREENS.SEARCH.ADVANCED_FILTERS_STATUS_RHP,
SCREENS.SEARCH.REPORT_RHP,
SCREENS.SEARCH.REPORT_VERIFY_ACCOUNT,
SCREENS.SEARCH.TRANSACTION_HOLD_REASON_RHP,
SCREENS.SEARCH.TRANSACTIONS_CHANGE_REPORT_SEARCH_RHP,
SCREENS.SEARCH.ADVANCED_FILTERS_RHP,
Expand Down
9 changes: 9 additions & 0 deletions src/libs/Navigation/linkingConfig/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1392,6 +1392,7 @@ const config: LinkingOptions<RootNavigatorParamList>['config'] = {
[SCREENS.MONEY_REQUEST.STEP_AMOUNT]: ROUTES.MONEY_REQUEST_STEP_AMOUNT.route,
[SCREENS.MONEY_REQUEST.STEP_CATEGORY]: ROUTES.MONEY_REQUEST_STEP_CATEGORY.route,
[SCREENS.MONEY_REQUEST.STEP_CONFIRMATION]: ROUTES.MONEY_REQUEST_STEP_CONFIRMATION.route,
[SCREENS.MONEY_REQUEST.STEP_CONFIRMATION_VERIFY_ACCOUNT]: ROUTES.MONEY_REQUEST_STEP_CONFIRMATION_VERIFY_ACCOUNT.route,
[SCREENS.MONEY_REQUEST.STEP_CURRENCY]: ROUTES.MONEY_REQUEST_STEP_CURRENCY.route,
[SCREENS.MONEY_REQUEST.STEP_DATE]: ROUTES.MONEY_REQUEST_STEP_DATE.route,
[SCREENS.MONEY_REQUEST.STEP_DESCRIPTION]: ROUTES.MONEY_REQUEST_STEP_DESCRIPTION.route,
Expand Down Expand Up @@ -1530,6 +1531,12 @@ const config: LinkingOptions<RootNavigatorParamList>['config'] = {
[SCREENS.REFERRAL_DETAILS]: ROUTES.REFERRAL_DETAILS_MODAL.route,
},
},
[SCREENS.RIGHT_MODAL.REPORT_VERIFY_ACCOUNT]: {
screens: {
[SCREENS.REPORT_VERIFY_ACCOUNT]: ROUTES.REPORT_VERIFY_ACCOUNT.route,
[SCREENS.SEARCH.REPORT_VERIFY_ACCOUNT]: ROUTES.SEARCH_REPORT_VERIFY_ACCOUNT.route,
},
},
[SCREENS.RIGHT_MODAL.TRAVEL]: {
screens: {
[SCREENS.TRAVEL.MY_TRIPS]: ROUTES.TRAVEL_MY_TRIPS,
Expand All @@ -1552,7 +1559,9 @@ const config: LinkingOptions<RootNavigatorParamList>['config'] = {
},
[SCREENS.RIGHT_MODAL.SEARCH_REPORT]: {
screens: {
[SCREENS.SEARCH.ROOT_VERIFY_ACCOUNT]: ROUTES.SEARCH_ROOT_VERIFY_ACCOUNT,
[SCREENS.SEARCH.REPORT_RHP]: ROUTES.SEARCH_REPORT.route,
[SCREENS.SEARCH.MONEY_REQUEST_REPORT_VERIFY_ACCOUNT]: ROUTES.SEARCH_MONEY_REQUEST_REPORT_VERIFY_ACCOUNT.route,
[SCREENS.SEARCH.MONEY_REQUEST_REPORT_HOLD_TRANSACTIONS]: ROUTES.SEARCH_MONEY_REQUEST_REPORT_HOLD_TRANSACTIONS.route,
[SCREENS.SEARCH.TRANSACTION_HOLD_REASON_RHP]: ROUTES.TRANSACTION_HOLD_REASON_RHP,
[SCREENS.SEARCH.TRANSACTIONS_CHANGE_REPORT_SEARCH_RHP]: ROUTES.MOVE_TRANSACTIONS_SEARCH_RHP,
Expand Down
Loading
Loading