diff --git a/src/libs/Navigation/linkingConfig/RELATIONS/CENTRAL_PANE_TO_RHP_MAPPING.ts b/src/libs/Navigation/linkingConfig/RELATIONS/CENTRAL_PANE_TO_RHP_MAPPING.ts deleted file mode 100755 index ca22a325f2f5..000000000000 --- a/src/libs/Navigation/linkingConfig/RELATIONS/CENTRAL_PANE_TO_RHP_MAPPING.ts +++ /dev/null @@ -1,66 +0,0 @@ -// @TODO: Remove this file before merging to the main. -import type {SplitNavigatorScreenName} from '@libs/Navigation/types'; -import SCREENS from '@src/SCREENS'; -import WORKSPACE_SCREEN_TO_RHP_MAPPING from './WORKSPACE_SCREEN_TO_RHP_MAPPING'; - -const CENTRAL_PANE_TO_RHP_MAPPING: Partial> = { - [SCREENS.SETTINGS.PROFILE.ROOT]: [ - SCREENS.SETTINGS.PROFILE.DISPLAY_NAME, - SCREENS.SETTINGS.PROFILE.CONTACT_METHODS, - SCREENS.SETTINGS.PROFILE.CONTACT_METHOD_DETAILS, - SCREENS.SETTINGS.PROFILE.NEW_CONTACT_METHOD, - SCREENS.SETTINGS.PROFILE.STATUS_CLEAR_AFTER, - SCREENS.SETTINGS.PROFILE.STATUS_CLEAR_AFTER_DATE, - SCREENS.SETTINGS.PROFILE.STATUS_CLEAR_AFTER_TIME, - SCREENS.SETTINGS.PROFILE.STATUS, - SCREENS.SETTINGS.PROFILE.PRONOUNS, - SCREENS.SETTINGS.PROFILE.TIMEZONE, - SCREENS.SETTINGS.PROFILE.TIMEZONE_SELECT, - SCREENS.SETTINGS.PROFILE.LEGAL_NAME, - SCREENS.SETTINGS.PROFILE.DATE_OF_BIRTH, - SCREENS.SETTINGS.PROFILE.PHONE_NUMBER, - SCREENS.SETTINGS.PROFILE.ADDRESS, - SCREENS.SETTINGS.PROFILE.ADDRESS_COUNTRY, - SCREENS.SETTINGS.SHARE_CODE, - SCREENS.SETTINGS.EXIT_SURVEY.REASON, - SCREENS.SETTINGS.EXIT_SURVEY.RESPONSE, - SCREENS.SETTINGS.EXIT_SURVEY.CONFIRM, - ], - [SCREENS.SETTINGS.PREFERENCES.ROOT]: [SCREENS.SETTINGS.PREFERENCES.PRIORITY_MODE, SCREENS.SETTINGS.PREFERENCES.LANGUAGE, SCREENS.SETTINGS.PREFERENCES.THEME], - [SCREENS.SETTINGS.WALLET.ROOT]: [ - SCREENS.SETTINGS.WALLET.DOMAIN_CARD, - SCREENS.SETTINGS.WALLET.CARD_GET_PHYSICAL.NAME, - SCREENS.SETTINGS.WALLET.CARD_GET_PHYSICAL.PHONE, - SCREENS.SETTINGS.WALLET.CARD_GET_PHYSICAL.ADDRESS, - SCREENS.SETTINGS.WALLET.CARD_GET_PHYSICAL.CONFIRM, - SCREENS.SETTINGS.WALLET.TRANSFER_BALANCE, - SCREENS.SETTINGS.WALLET.CHOOSE_TRANSFER_ACCOUNT, - SCREENS.SETTINGS.WALLET.ENABLE_PAYMENTS, - SCREENS.SETTINGS.WALLET.CARD_ACTIVATE, - SCREENS.SETTINGS.WALLET.REPORT_VIRTUAL_CARD_FRAUD, - SCREENS.SETTINGS.WALLET.CARDS_DIGITAL_DETAILS_UPDATE_ADDRESS, - ], - [SCREENS.SETTINGS.SECURITY]: [ - SCREENS.SETTINGS.TWO_FACTOR_AUTH, - SCREENS.SETTINGS.CLOSE, - SCREENS.SETTINGS.DELEGATE.ADD_DELEGATE, - SCREENS.SETTINGS.DELEGATE.DELEGATE_ROLE, - SCREENS.SETTINGS.DELEGATE.UPDATE_DELEGATE_ROLE, - SCREENS.SETTINGS.DELEGATE.DELEGATE_CONFIRM, - SCREENS.SETTINGS.DELEGATE.UPDATE_DELEGATE_ROLE_MAGIC_CODE, - ], - [SCREENS.SETTINGS.ABOUT]: [SCREENS.SETTINGS.APP_DOWNLOAD_LINKS], - [SCREENS.SETTINGS.SAVE_THE_WORLD]: [SCREENS.I_KNOW_A_TEACHER, SCREENS.INTRO_SCHOOL_PRINCIPAL, SCREENS.I_AM_A_TEACHER], - [SCREENS.SETTINGS.TROUBLESHOOT]: [SCREENS.SETTINGS.CONSOLE], - [SCREENS.SETTINGS.SUBSCRIPTION.ROOT]: [ - SCREENS.SETTINGS.SUBSCRIPTION.ADD_PAYMENT_CARD, - SCREENS.SETTINGS.SUBSCRIPTION.SIZE, - SCREENS.SETTINGS.SUBSCRIPTION.DISABLE_AUTO_RENEW_SURVEY, - SCREENS.SETTINGS.SUBSCRIPTION.REQUEST_EARLY_CANCELLATION, - SCREENS.SETTINGS.SUBSCRIPTION.CHANGE_BILLING_CURRENCY, - SCREENS.SETTINGS.SUBSCRIPTION.CHANGE_PAYMENT_CURRENCY, - ], - ...WORKSPACE_SCREEN_TO_RHP_MAPPING, -}; - -export default CENTRAL_PANE_TO_RHP_MAPPING; diff --git a/src/libs/Navigation/linkingConfig/RELATIONS/SEARCH_RHP_SCREENS.ts b/src/libs/Navigation/linkingConfig/RELATIONS/SEARCH_RHP_SCREENS.ts deleted file mode 100644 index 48422f90a7bc..000000000000 --- a/src/libs/Navigation/linkingConfig/RELATIONS/SEARCH_RHP_SCREENS.ts +++ /dev/null @@ -1,26 +0,0 @@ -// @TODO Remove this file before merging to the main. -import SCREENS from '@src/SCREENS'; - -const SEARCH_RHP_SCREENS: string[] = [ - SCREENS.SEARCH.REPORT_RHP, - SCREENS.SEARCH.TRANSACTION_HOLD_REASON_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_CURRENCY_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_DATE_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_DESCRIPTION_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_MERCHANT_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_REPORT_ID_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_AMOUNT_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_CATEGORY_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_KEYWORD_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_TAX_RATE_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_EXPENSE_TYPE_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_TAG_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_FROM_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_TO_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_IN_RHP, - SCREENS.SEARCH.ADVANCED_FILTERS_CARD_RHP, - SCREENS.SEARCH.SAVED_SEARCH_RENAME_RHP, -]; - -export default SEARCH_RHP_SCREENS; diff --git a/src/libs/Navigation/linkingConfig/RELATIONS/SETTINGS_TO_RHP.ts b/src/libs/Navigation/linkingConfig/RELATIONS/SETTINGS_TO_RHP.ts index 6e7c15ce3a16..1df3af0a6e86 100755 --- a/src/libs/Navigation/linkingConfig/RELATIONS/SETTINGS_TO_RHP.ts +++ b/src/libs/Navigation/linkingConfig/RELATIONS/SETTINGS_TO_RHP.ts @@ -17,6 +17,7 @@ const CENTRAL_PANE_TO_RHP_MAPPING: Partial> = { - [SCREENS.WORKSPACE.PROFILE]: [ - SCREENS.WORKSPACE.NAME, - SCREENS.WORKSPACE.ADDRESS, - SCREENS.WORKSPACE.CURRENCY, - SCREENS.WORKSPACE.DESCRIPTION, - SCREENS.WORKSPACE.SHARE, - SCREENS.WORKSPACE.DOWNGRADE, - ], - [SCREENS.WORKSPACE.MEMBERS]: [ - SCREENS.WORKSPACE.INVITE, - SCREENS.WORKSPACE.INVITE_MESSAGE, - SCREENS.WORKSPACE.MEMBER_DETAILS, - SCREENS.WORKSPACE.MEMBER_NEW_CARD, - SCREENS.WORKSPACE.OWNER_CHANGE_CHECK, - SCREENS.WORKSPACE.OWNER_CHANGE_SUCCESS, - SCREENS.WORKSPACE.OWNER_CHANGE_ERROR, - SCREENS.WORKSPACE.OWNER_CHANGE_ERROR, - SCREENS.WORKSPACE.MEMBERS_IMPORT, - SCREENS.WORKSPACE.MEMBERS_IMPORTED, - ], - [SCREENS.WORKSPACE.WORKFLOWS]: [ - SCREENS.WORKSPACE.WORKFLOWS_APPROVALS_NEW, - SCREENS.WORKSPACE.WORKFLOWS_APPROVALS_EDIT, - SCREENS.WORKSPACE.WORKFLOWS_APPROVALS_EXPENSES_FROM, - SCREENS.WORKSPACE.WORKFLOWS_APPROVALS_APPROVER, - SCREENS.WORKSPACE.WORKFLOWS_AUTO_REPORTING_FREQUENCY, - SCREENS.WORKSPACE.WORKFLOWS_AUTO_REPORTING_MONTHLY_OFFSET, - SCREENS.WORKSPACE.WORKFLOWS_PAYER, - ], - [SCREENS.WORKSPACE.ACCOUNTING.ROOT]: [ - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_IMPORT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_CHART_OF_ACCOUNTS, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_CLASSES, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_TAXES, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_LOCATIONS, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_CUSTOMERS, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_EXPORT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_EXPORT_DATE_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_EXPORT_INVOICE_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_EXPORT_OUT_OF_POCKET_EXPENSES_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT_COMPANY_CARD_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_EXPORT_PREFERRED_EXPORTER, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_EXPORT_OUT_OF_POCKET_EXPENSES, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_EXPORT_OUT_OF_POCKET_EXPENSES_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_NON_REIMBURSABLE_DEFAULT_VENDOR_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_ADVANCED, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_ACCOUNT_SELECTOR, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_INVOICE_ACCOUNT_SELECTOR, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_CLASSES_DISPLAYED_AS, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_CUSTOMERS_DISPLAYED_AS, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_LOCATIONS_DISPLAYED_AS, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_COMPANY_CARD_EXPENSE_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_COMPANY_CARD_EXPENSE_ACCOUNT_COMPANY_CARD_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_COMPANY_CARD_EXPENSE_ACCOUNT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_NON_REIMBURSABLE_DEFAULT_VENDOR_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_ADVANCED, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_EXPORT_DATE_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_EXPORT_PREFERRED_EXPORTER, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_EXPORT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_SETUP_MODAL, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_SETUP_REQUIRED_DEVICE_MODAL, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_TRIGGER_FIRST_SYNC, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_IMPORT, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_CHART_OF_ACCOUNTS, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_CLASSES, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_CLASSES_DISPLAYED_AS, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_CUSTOMERS, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_CUSTOMERS_DISPLAYED_AS, - SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_DESKTOP_ITEMS, - SCREENS.WORKSPACE.ACCOUNTING.XERO_IMPORT, - SCREENS.WORKSPACE.ACCOUNTING.XERO_CHART_OF_ACCOUNTS, - SCREENS.WORKSPACE.ACCOUNTING.XERO_ORGANIZATION, - SCREENS.WORKSPACE.ACCOUNTING.XERO_CUSTOMER, - SCREENS.WORKSPACE.ACCOUNTING.XERO_TAXES, - SCREENS.WORKSPACE.ACCOUNTING.XERO_TRACKING_CATEGORIES, - SCREENS.WORKSPACE.ACCOUNTING.XERO_MAP_TRACKING_CATEGORY, - SCREENS.WORKSPACE.ACCOUNTING.XERO_EXPORT, - SCREENS.WORKSPACE.ACCOUNTING.XERO_EXPORT_PURCHASE_BILL_DATE_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.XERO_ADVANCED, - SCREENS.WORKSPACE.ACCOUNTING.XERO_BILL_STATUS_SELECTOR, - SCREENS.WORKSPACE.ACCOUNTING.XERO_INVOICE_ACCOUNT_SELECTOR, - SCREENS.WORKSPACE.ACCOUNTING.XERO_EXPORT_PREFERRED_EXPORTER_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.XERO_BILL_PAYMENT_ACCOUNT_SELECTOR, - SCREENS.WORKSPACE.ACCOUNTING.XERO_EXPORT_BANK_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_SUBSIDIARY_SELECTOR, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_REUSE_EXISTING_CONNECTIONS, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_TOKEN_INPUT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_IMPORT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_IMPORT_MAPPING, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_IMPORT_CUSTOM_FIELD, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_IMPORT_CUSTOM_FIELD_VIEW, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_IMPORT_CUSTOM_FIELD_EDIT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_IMPORT_CUSTOM_LIST_ADD, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_IMPORT_CUSTOM_SEGMENT_ADD, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_IMPORT_CUSTOMERS_OR_PROJECTS, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_IMPORT_CUSTOMERS_OR_PROJECTS_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_EXPORT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_PREFERRED_EXPORTER_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_DATE_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_EXPORT_EXPENSES, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_EXPORT_EXPENSES_DESTINATION_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_EXPORT_EXPENSES_VENDOR_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_EXPORT_EXPENSES_PAYABLE_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_EXPORT_EXPENSES_JOURNAL_POSTING_PREFERENCE_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_RECEIVABLE_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_INVOICE_ITEM_PREFERENCE_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_INVOICE_ITEM_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_TAX_POSTING_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_PROVINCIAL_TAX_POSTING_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_ADVANCED, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_REIMBURSEMENT_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_COLLECTION_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_EXPENSE_REPORT_APPROVAL_LEVEL_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_VENDOR_BILL_APPROVAL_LEVEL_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_JOURNAL_ENTRY_APPROVAL_LEVEL_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_APPROVAL_ACCOUNT_SELECT, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_CUSTOM_FORM_ID, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_AUTO_SYNC, - SCREENS.WORKSPACE.ACCOUNTING.NETSUITE_ACCOUNTING_METHOD, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_PREREQUISITES, - SCREENS.WORKSPACE.ACCOUNTING.ENTER_SAGE_INTACCT_CREDENTIALS, - SCREENS.WORKSPACE.ACCOUNTING.EXISTING_SAGE_INTACCT_CONNECTIONS, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_ENTITY, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_IMPORT, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_MAPPING_TYPE, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_TOGGLE_MAPPING, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_USER_DIMENSIONS, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_ADD_USER_DIMENSION, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_EDIT_USER_DIMENSION, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_EXPORT, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_PREFERRED_EXPORTER, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_EXPORT_DATE, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_REIMBURSABLE_EXPENSES, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_NON_REIMBURSABLE_EXPENSES, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_REIMBURSABLE_DESTINATION, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_NON_REIMBURSABLE_DESTINATION, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_DEFAULT_VENDOR, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_NON_REIMBURSABLE_CREDIT_CARD_ACCOUNT, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_ADVANCED, - SCREENS.WORKSPACE.ACCOUNTING.SAGE_INTACCT_PAYMENT_ACCOUNT, - SCREENS.WORKSPACE.ACCOUNTING.CARD_RECONCILIATION, - SCREENS.WORKSPACE.ACCOUNTING.RECONCILIATION_ACCOUNT_SETTINGS, - ], - [SCREENS.WORKSPACE.TAXES]: [ - SCREENS.WORKSPACE.TAXES_SETTINGS, - SCREENS.WORKSPACE.TAX_CREATE, - SCREENS.WORKSPACE.TAXES_SETTINGS_CUSTOM_TAX_NAME, - SCREENS.WORKSPACE.TAXES_SETTINGS_FOREIGN_CURRENCY_DEFAULT, - SCREENS.WORKSPACE.TAXES_SETTINGS_WORKSPACE_CURRENCY_DEFAULT, - SCREENS.WORKSPACE.TAX_CREATE, - SCREENS.WORKSPACE.TAX_EDIT, - SCREENS.WORKSPACE.TAX_NAME, - SCREENS.WORKSPACE.TAX_VALUE, - SCREENS.WORKSPACE.TAX_CODE, - ], - [SCREENS.WORKSPACE.TAGS]: [ - SCREENS.WORKSPACE.TAGS_SETTINGS, - SCREENS.WORKSPACE.TAGS_EDIT, - SCREENS.WORKSPACE.TAG_CREATE, - SCREENS.WORKSPACE.TAG_SETTINGS, - SCREENS.WORKSPACE.TAG_EDIT, - SCREENS.WORKSPACE.TAG_LIST_VIEW, - SCREENS.WORKSPACE.TAG_GL_CODE, - SCREENS.WORKSPACE.TAG_APPROVER, - SCREENS.WORKSPACE.TAGS_IMPORT, - SCREENS.WORKSPACE.TAGS_IMPORTED, - ], - [SCREENS.WORKSPACE.CATEGORIES]: [ - SCREENS.WORKSPACE.CATEGORY_CREATE, - SCREENS.WORKSPACE.CATEGORY_SETTINGS, - SCREENS.WORKSPACE.CATEGORIES_IMPORT, - SCREENS.WORKSPACE.CATEGORIES_IMPORTED, - SCREENS.WORKSPACE.CATEGORIES_SETTINGS, - SCREENS.WORKSPACE.CATEGORY_EDIT, - SCREENS.WORKSPACE.CATEGORY_GL_CODE, - SCREENS.WORKSPACE.CATEGORY_PAYROLL_CODE, - SCREENS.WORKSPACE.CATEGORY_DEFAULT_TAX_RATE, - SCREENS.WORKSPACE.CATEGORY_FLAG_AMOUNTS_OVER, - SCREENS.WORKSPACE.CATEGORY_DESCRIPTION_HINT, - SCREENS.WORKSPACE.CATEGORY_APPROVER, - SCREENS.WORKSPACE.CATEGORY_REQUIRE_RECEIPTS_OVER, - ], - [SCREENS.WORKSPACE.DISTANCE_RATES]: [ - SCREENS.WORKSPACE.CREATE_DISTANCE_RATE, - SCREENS.WORKSPACE.DISTANCE_RATES_SETTINGS, - SCREENS.WORKSPACE.DISTANCE_RATE_EDIT, - SCREENS.WORKSPACE.DISTANCE_RATE_TAX_RECLAIMABLE_ON_EDIT, - SCREENS.WORKSPACE.DISTANCE_RATE_TAX_RATE_EDIT, - SCREENS.WORKSPACE.DISTANCE_RATE_DETAILS, - ], - [SCREENS.WORKSPACE.REPORT_FIELDS]: [ - SCREENS.WORKSPACE.REPORT_FIELDS_CREATE, - SCREENS.WORKSPACE.REPORT_FIELDS_SETTINGS, - SCREENS.WORKSPACE.REPORT_FIELDS_LIST_VALUES, - SCREENS.WORKSPACE.REPORT_FIELDS_ADD_VALUE, - SCREENS.WORKSPACE.REPORT_FIELDS_VALUE_SETTINGS, - SCREENS.WORKSPACE.REPORT_FIELDS_EDIT_VALUE, - SCREENS.WORKSPACE.REPORT_FIELDS_EDIT_INITIAL_VALUE, - ], - [SCREENS.WORKSPACE.INVOICES]: [SCREENS.WORKSPACE.INVOICES_COMPANY_NAME, SCREENS.WORKSPACE.INVOICES_COMPANY_WEBSITE], - [SCREENS.WORKSPACE.COMPANY_CARDS]: [ - SCREENS.WORKSPACE.COMPANY_CARDS_SELECT_FEED, - SCREENS.WORKSPACE.COMPANY_CARDS_ADD_NEW, - SCREENS.WORKSPACE.COMPANY_CARDS_TYPE, - SCREENS.WORKSPACE.COMPANY_CARDS_INSTRUCTIONS, - SCREENS.WORKSPACE.COMPANY_CARDS_NAME, - SCREENS.WORKSPACE.COMPANY_CARDS_DETAILS, - SCREENS.WORKSPACE.COMPANY_CARDS_SELECT_FEED, - SCREENS.WORKSPACE.COMPANY_CARDS_SETTINGS, - SCREENS.WORKSPACE.COMPANY_CARDS_SETTINGS_FEED_NAME, - SCREENS.WORKSPACE.COMPANY_CARDS_SETTINGS, - SCREENS.WORKSPACE.COMPANY_CARDS_SETTINGS_FEED_NAME, - SCREENS.WORKSPACE.COMPANY_CARDS_ASSIGN_CARD, - SCREENS.WORKSPACE.COMPANY_CARD_DETAILS, - SCREENS.WORKSPACE.COMPANY_CARD_NAME, - SCREENS.WORKSPACE.COMPANY_CARD_EXPORT, - ], - [SCREENS.WORKSPACE.EXPENSIFY_CARD]: [ - SCREENS.WORKSPACE.EXPENSIFY_CARD_ISSUE_NEW, - SCREENS.WORKSPACE.EXPENSIFY_CARD_BANK_ACCOUNT, - SCREENS.WORKSPACE.EXPENSIFY_CARD_SETTINGS, - SCREENS.WORKSPACE.EXPENSIFY_CARD_SETTINGS_ACCOUNT, - SCREENS.WORKSPACE.EXPENSIFY_CARD_SETTINGS_FREQUENCY, - SCREENS.WORKSPACE.EXPENSIFY_CARD_DETAILS, - SCREENS.WORKSPACE.EXPENSIFY_CARD_NAME, - SCREENS.WORKSPACE.EXPENSIFY_CARD_LIMIT, - SCREENS.WORKSPACE.EXPENSIFY_CARD_LIMIT_TYPE, - ], - [SCREENS.WORKSPACE.RULES]: [ - SCREENS.WORKSPACE.RULES_CUSTOM_NAME, - SCREENS.WORKSPACE.RULES_AUTO_APPROVE_REPORTS_UNDER, - SCREENS.WORKSPACE.RULES_RANDOM_REPORT_AUDIT, - SCREENS.WORKSPACE.RULES_AUTO_PAY_REPORTS_UNDER, - SCREENS.WORKSPACE.RULES_RECEIPT_REQUIRED_AMOUNT, - SCREENS.WORKSPACE.RULES_MAX_EXPENSE_AMOUNT, - SCREENS.WORKSPACE.RULES_MAX_EXPENSE_AGE, - SCREENS.WORKSPACE.RULES_BILLABLE_DEFAULT, - ], - [SCREENS.WORKSPACE.PER_DIEM]: [SCREENS.WORKSPACE.PER_DIEM_IMPORT, SCREENS.WORKSPACE.PER_DIEM_IMPORTED, SCREENS.WORKSPACE.PER_DIEM_SETTINGS], -}; - -export default WORKSPACE_SCREEN_TO_RHP_MAPPING; diff --git a/src/libs/Navigation/linkingConfig/RELATIONS/WORKSPACE_TO_RHP.ts b/src/libs/Navigation/linkingConfig/RELATIONS/WORKSPACE_TO_RHP.ts index fd492cd85800..1c4f684a9aed 100755 --- a/src/libs/Navigation/linkingConfig/RELATIONS/WORKSPACE_TO_RHP.ts +++ b/src/libs/Navigation/linkingConfig/RELATIONS/WORKSPACE_TO_RHP.ts @@ -3,7 +3,14 @@ import SCREENS from '@src/SCREENS'; // This file is used to define relation between workspace split navigator's central screens and RHP screens. const WORKSPACE_TO_RHP: Partial> = { - [SCREENS.WORKSPACE.PROFILE]: [SCREENS.WORKSPACE.NAME, SCREENS.WORKSPACE.ADDRESS, SCREENS.WORKSPACE.CURRENCY, SCREENS.WORKSPACE.DESCRIPTION, SCREENS.WORKSPACE.SHARE], + [SCREENS.WORKSPACE.PROFILE]: [ + SCREENS.WORKSPACE.NAME, + SCREENS.WORKSPACE.ADDRESS, + SCREENS.WORKSPACE.CURRENCY, + SCREENS.WORKSPACE.DESCRIPTION, + SCREENS.WORKSPACE.SHARE, + SCREENS.WORKSPACE.DOWNGRADE, + ], [SCREENS.WORKSPACE.MEMBERS]: [ SCREENS.WORKSPACE.INVITE, SCREENS.WORKSPACE.INVITE_MESSAGE, @@ -46,6 +53,30 @@ const WORKSPACE_TO_RHP: Partial