diff --git a/src/SCREENS.ts b/src/SCREENS.ts
index c43247623508..b59cf7263880 100644
--- a/src/SCREENS.ts
+++ b/src/SCREENS.ts
@@ -27,7 +27,6 @@ const SCREENS = {
MY_TRIPS: 'Travel_MyTrips',
TCS: 'Travel_TCS',
},
- WORKSPACES_CENTRAL_PANE: 'WorkspacesCentralPane',
SEARCH: {
CENTRAL_PANE: 'Search_Central_Pane',
REPORT_RHP: 'Search_Report_RHP',
@@ -109,9 +108,6 @@ const SCREENS = {
CHAT_FINDER: 'ChatFinder',
WORKSPACE_SWITCHER: 'WorkspaceSwitcher',
},
- WORKSPACE_SWITCHER: {
- ROOT: 'WorkspaceSwitcher_Root',
- },
RIGHT_MODAL: {
SETTINGS: 'Settings',
NEW_CHAT: 'NewChat',
@@ -356,7 +352,6 @@ const SCREENS = {
},
ROOM_MEMBERS_ROOT: 'RoomMembers_Root',
ROOM_INVITE_ROOT: 'RoomInvite_Root',
- CHAT_FINDER_ROOT: 'ChatFinder_Root',
FLAG_COMMENT_ROOT: 'FlagComment_Root',
REIMBURSEMENT_ACCOUNT: 'ReimbursementAccount',
GET_ASSISTANCE: 'GetAssistance',
diff --git a/src/libs/Navigation/AppNavigator/ModalStackNavigators/WorkspaceSettingsModalStackNavigator.tsx b/src/libs/Navigation/AppNavigator/ModalStackNavigators/WorkspaceSettingsModalStackNavigator.tsx
deleted file mode 100644
index c36b24e50a9e..000000000000
--- a/src/libs/Navigation/AppNavigator/ModalStackNavigators/WorkspaceSettingsModalStackNavigator.tsx
+++ /dev/null
@@ -1,95 +0,0 @@
-import {createStackNavigator} from '@react-navigation/stack';
-import React from 'react';
-import useStyleUtils from '@hooks/useStyleUtils';
-import useThemeStyles from '@hooks/useThemeStyles';
-import useWindowDimensions from '@hooks/useWindowDimensions';
-import getRootNavigatorScreenOptions from '@libs/Navigation/AppNavigator/getRootNavigatorScreenOptions';
-import SCREENS from '@src/SCREENS';
-
-const StackNavigator = createStackNavigator();
-
-function WorkspaceSettingsModalStackNavigator() {
- const styles = useThemeStyles();
- const StyleUtils = useStyleUtils();
- const {isSmallScreenWidth} = useWindowDimensions();
- const screenOptions = getRootNavigatorScreenOptions(isSmallScreenWidth, styles, StyleUtils);
-
- return (
-
- require('@pages/workspace/WorkspaceProfilePage').default as React.ComponentType}
- />
- require('@pages/workspace/card/WorkspaceCardPage').default as React.ComponentType}
- />
- require('@pages/workspace/workflows/WorkspaceWorkflowsPage').default as React.ComponentType}
- />
- require('@pages/workspace/reimburse/WorkspaceReimbursePage').default as React.ComponentType}
- />
- require('@pages/workspace/bills/WorkspaceBillsPage').default as React.ComponentType}
- />
- require('@pages/workspace/invoices/WorkspaceInvoicesPage').default as React.ComponentType}
- />
- require('@pages/workspace/travel/WorkspaceTravelPage').default as React.ComponentType}
- />
- require('@pages/workspace/WorkspaceMembersPage').default as React.ComponentType}
- />
-
- require('@pages/workspace/accounting/PolicyAccountingPage').default as React.ComponentType}
- />
-
- require('@pages/workspace/categories/WorkspaceCategoriesPage').default as React.ComponentType}
- />
- require('@pages/workspace/WorkspaceMoreFeaturesPage').default as React.ComponentType}
- />
- require('@pages/workspace/tags/WorkspaceTagsPage').default as React.ComponentType}
- />
- require('@pages/workspace/taxes/WorkspaceTaxesPage').default as React.ComponentType}
- />
- require('@pages/workspace/distanceRates/PolicyDistanceRatesPage').default as React.ComponentType}
- />
-
- );
-}
-
-export default WorkspaceSettingsModalStackNavigator;
diff --git a/src/libs/Navigation/AppNavigator/ModalStackNavigators/index.tsx b/src/libs/Navigation/AppNavigator/ModalStackNavigators/index.tsx
index 4373c2b63823..5581ea8e8fba 100644
--- a/src/libs/Navigation/AppNavigator/ModalStackNavigators/index.tsx
+++ b/src/libs/Navigation/AppNavigator/ModalStackNavigators/index.tsx
@@ -4,7 +4,6 @@ import {createStackNavigator} from '@react-navigation/stack';
import React from 'react';
import type {
AddPersonalBankAccountNavigatorParamList,
- ChatFinderNavigatorParamList,
DetailsNavigatorParamList,
EditRequestNavigatorParamList,
EnablePaymentsNavigatorParamList,
@@ -30,13 +29,11 @@ import type {
TeachersUniteNavigatorParamList,
TravelNavigatorParamList,
WalletStatementNavigatorParamList,
- WorkspaceSwitcherNavigatorParamList,
} from '@navigation/types';
import type {ThemeStyles} from '@styles/index';
import type {Screen} from '@src/SCREENS';
import SCREENS from '@src/SCREENS';
import useModalScreenOptions from './useModalScreenOptions';
-import WorkspaceSettingsModalStackNavigator from './WorkspaceSettingsModalStackNavigator';
type Screens = Partial React.ComponentType>>;
@@ -152,10 +149,6 @@ const RoomInviteModalStackNavigator = createModalStackNavigator require('../../../../pages/RoomInvitePage').default as React.ComponentType,
});
-const ChatFinderModalStackNavigator = createModalStackNavigator({
- [SCREENS.CHAT_FINDER_ROOT]: () => require('../../../../pages/ChatFinderPage').default as React.ComponentType,
-});
-
const NewChatModalStackNavigator = createModalStackNavigator({
[SCREENS.NEW_CHAT.ROOT]: () => require('../../../../pages/NewChatSelectorPage').default as React.ComponentType,
[SCREENS.NEW_CHAT.NEW_CHAT_CONFIRM]: () => require('../../../../pages/NewChatConfirmPage').default as React.ComponentType,
@@ -178,10 +171,6 @@ const NewTeachersUniteNavigator = createModalStackNavigator require('../../../../pages/TeachersUnite/ImTeacherPage').default as React.ComponentType,
});
-const WorkspaceSwitcherModalStackNavigator = createModalStackNavigator({
- [SCREENS.WORKSPACE_SWITCHER.ROOT]: () => require('../../../../pages/WorkspaceSwitcherPage').default as React.ComponentType,
-});
-
const SettingsModalStackNavigator = createModalStackNavigator({
[SCREENS.SETTINGS.SHARE_CODE]: () => require('../../../../pages/ShareCodePage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.PRONOUNS]: () => require('../../../../pages/settings/Profile/PronounsPage').default as React.ComponentType,
@@ -379,24 +368,21 @@ export {
NewTaskModalStackNavigator,
NewTeachersUniteNavigator,
PrivateNotesModalStackNavigator,
+ ProcessMoneyRequestHoldStackNavigator,
ProfileModalStackNavigator,
ReferralModalStackNavigator,
TravelModalStackNavigator,
- WorkspaceSwitcherModalStackNavigator,
ReimbursementAccountModalStackNavigator,
+ ReportDescriptionModalStackNavigator,
ReportDetailsModalStackNavigator,
ReportParticipantsModalStackNavigator,
ReportSettingsModalStackNavigator,
- ReportDescriptionModalStackNavigator,
RoomInviteModalStackNavigator,
RoomMembersModalStackNavigator,
- ChatFinderModalStackNavigator,
SettingsModalStackNavigator,
SignInModalStackNavigator,
SplitDetailsModalStackNavigator,
TaskModalStackNavigator,
WalletStatementStackNavigator,
- ProcessMoneyRequestHoldStackNavigator,
- WorkspaceSettingsModalStackNavigator,
SearchReportModalStackNavigator,
};
diff --git a/src/libs/Navigation/AppNavigator/Navigators/FullScreenNavigator.tsx b/src/libs/Navigation/AppNavigator/Navigators/FullScreenNavigator.tsx
index 07b069462dd1..1745e350c62d 100644
--- a/src/libs/Navigation/AppNavigator/Navigators/FullScreenNavigator.tsx
+++ b/src/libs/Navigation/AppNavigator/Navigators/FullScreenNavigator.tsx
@@ -5,13 +5,32 @@ import useThemeStyles from '@hooks/useThemeStyles';
import useWindowDimensions from '@hooks/useWindowDimensions';
import createCustomFullScreenNavigator from '@libs/Navigation/AppNavigator/createCustomFullScreenNavigator';
import getRootNavigatorScreenOptions from '@libs/Navigation/AppNavigator/getRootNavigatorScreenOptions';
-import * as ModalStackNavigators from '@libs/Navigation/AppNavigator/ModalStackNavigators';
+import type {FullScreenNavigatorParamList} from '@libs/Navigation/types';
import SCREENS from '@src/SCREENS';
const loadWorkspaceInitialPage = () => require('../../../../pages/workspace/WorkspaceInitialPage').default as React.ComponentType;
const RootStack = createCustomFullScreenNavigator();
+type Screens = Partial React.ComponentType>>;
+
+const centralPaneWorkspaceScreens = {
+ [SCREENS.WORKSPACE.PROFILE]: () => require('../../../../pages/workspace/WorkspaceProfilePage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.CARD]: () => require('../../../../pages/workspace/card/WorkspaceCardPage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.WORKFLOWS]: () => require('../../../../pages/workspace/workflows/WorkspaceWorkflowsPage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.REIMBURSE]: () => require('../../../../pages/workspace/reimburse/WorkspaceReimbursePage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.BILLS]: () => require('../../../../pages/workspace/bills/WorkspaceBillsPage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.INVOICES]: () => require('../../../../pages/workspace/invoices/WorkspaceInvoicesPage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.TRAVEL]: () => require('../../../../pages/workspace/travel/WorkspaceTravelPage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.MEMBERS]: () => require('../../../../pages/workspace/WorkspaceMembersPage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.ACCOUNTING.ROOT]: () => require('../../../../pages/workspace/accounting/PolicyAccountingPage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.CATEGORIES]: () => require('../../../../pages/workspace/categories/WorkspaceCategoriesPage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.MORE_FEATURES]: () => require('../../../../pages/workspace/WorkspaceMoreFeaturesPage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.TAGS]: () => require('../../../../pages/workspace/tags/WorkspaceTagsPage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.TAXES]: () => require('../../../../pages/workspace/taxes/WorkspaceTaxesPage').default as React.ComponentType,
+ [SCREENS.WORKSPACE.DISTANCE_RATES]: () => require('../../../../pages/workspace/distanceRates/PolicyDistanceRatesPage').default as React.ComponentType,
+} satisfies Screens;
+
function FullScreenNavigator() {
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
@@ -20,17 +39,19 @@ function FullScreenNavigator() {
return (
-
+
-
+ {Object.entries(centralPaneWorkspaceScreens).map(([screenName, componentGetter]) => (
+
+ ))}
);
diff --git a/src/libs/Navigation/AppNavigator/Navigators/LeftModalNavigator.tsx b/src/libs/Navigation/AppNavigator/Navigators/LeftModalNavigator.tsx
index 159430a66a43..fba323f4f60b 100644
--- a/src/libs/Navigation/AppNavigator/Navigators/LeftModalNavigator.tsx
+++ b/src/libs/Navigation/AppNavigator/Navigators/LeftModalNavigator.tsx
@@ -6,7 +6,6 @@ import NoDropZone from '@components/DragAndDrop/NoDropZone';
import useThemeStyles from '@hooks/useThemeStyles';
import useWindowDimensions from '@hooks/useWindowDimensions';
import ModalNavigatorScreenOptions from '@libs/Navigation/AppNavigator/ModalNavigatorScreenOptions';
-import * as ModalStackNavigators from '@libs/Navigation/AppNavigator/ModalStackNavigators';
import type {AuthScreensParamList, LeftModalNavigatorParamList} from '@libs/Navigation/types';
import type NAVIGATORS from '@src/NAVIGATORS';
import SCREENS from '@src/SCREENS';
@@ -14,6 +13,9 @@ import Overlay from './Overlay';
type LeftModalNavigatorProps = StackScreenProps;
+const loadChatFinder = () => require('../../../../pages/ChatFinderPage').default as React.ComponentType;
+const loadWorkspaceSwitcherPage = () => require('../../../../pages/WorkspaceSwitcherPage').default as React.ComponentType;
+
const Stack = createStackNavigator();
function LeftModalNavigator({navigation}: LeftModalNavigatorProps) {
@@ -33,11 +35,11 @@ function LeftModalNavigator({navigation}: LeftModalNavigatorProps) {
diff --git a/src/libs/Navigation/AppNavigator/createCustomFullScreenNavigator/CustomFullScreenRouter.tsx b/src/libs/Navigation/AppNavigator/createCustomFullScreenNavigator/CustomFullScreenRouter.tsx
index eb19f891ecd5..27e976d9be0c 100644
--- a/src/libs/Navigation/AppNavigator/createCustomFullScreenNavigator/CustomFullScreenRouter.tsx
+++ b/src/libs/Navigation/AppNavigator/createCustomFullScreenNavigator/CustomFullScreenRouter.tsx
@@ -11,11 +11,6 @@ const isAtLeastOneInState = (state: StackState, screenName: string): boolean =>
function adaptStateIfNecessary(state: StackState) {
const isNarrowLayout = getIsNarrowLayout();
const workspaceCentralPane = state.routes.at(-1);
- const topmostWorkspaceCentralPaneRoute = workspaceCentralPane?.state?.routes[0];
-
- // When a screen from the FullScreenNavigator is opened from the deeplink then params should be passed to SCREENS.WORKSPACE.INITIAL from the variable defined below.
- const workspacesCentralPaneParams =
- workspaceCentralPane?.params && 'params' in workspaceCentralPane.params ? (workspaceCentralPane.params.params as Record) : undefined;
// There should always be WORKSPACE.INITIAL screen in the state to make sure go back works properly if we deeplinkg to a subpage of settings.
if (!isAtLeastOneInState(state, SCREENS.WORKSPACE.INITIAL)) {
@@ -28,31 +23,24 @@ function adaptStateIfNecessary(state: StackState) {
// Unshift the root screen to fill left pane.
state.routes.unshift({
name: SCREENS.WORKSPACE.INITIAL,
- params: topmostWorkspaceCentralPaneRoute?.params ?? workspacesCentralPaneParams,
+ params: workspaceCentralPane?.params,
});
}
}
// If the screen is wide, there should be at least two screens inside:
// - WORKSPACE.INITIAL to cover left pane.
- // - WORKSPACES_CENTRAL_PANE to cover central pane.
+ // - WORKSPACE.PROFILE (first workspace settings screen) to cover central pane.
if (!isNarrowLayout) {
- if (!isAtLeastOneInState(state, SCREENS.WORKSPACES_CENTRAL_PANE)) {
+ if (state.routes.length === 1 && state.routes[0].name === SCREENS.WORKSPACE.INITIAL) {
// @ts-expect-error Updating read only property
// noinspection JSConstantReassignment
state.stale = true; // eslint-disable-line
// Push the default settings central pane screen.
if (state.stale === true) {
state.routes.push({
- name: SCREENS.WORKSPACES_CENTRAL_PANE,
- state: {
- routes: [
- {
- name: SCREENS.WORKSPACE.PROFILE,
- params: state.routes[0]?.params,
- },
- ],
- },
+ name: SCREENS.WORKSPACE.PROFILE,
+ params: state.routes[0]?.params,
});
}
}
diff --git a/src/libs/Navigation/getTopmostWorkspacesCentralPaneName.ts b/src/libs/Navigation/getTopmostWorkspacesCentralPaneName.ts
deleted file mode 100644
index db11368c1345..000000000000
--- a/src/libs/Navigation/getTopmostWorkspacesCentralPaneName.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import type {NavigationState, PartialState} from '@react-navigation/native';
-import SCREENS from '@src/SCREENS';
-
-// Get the name of topmost report in the navigation stack.
-function getTopmostWorkspacesCentralPaneName(state: NavigationState | PartialState): string | undefined {
- if (!state) {
- return;
- }
-
- const topmostCentralPane = state.routes.filter((route) => typeof route !== 'number' && 'name' in route && route.name === SCREENS.WORKSPACES_CENTRAL_PANE).at(-1);
-
- if (!topmostCentralPane) {
- return;
- }
-
- if (!!topmostCentralPane.params && 'screen' in topmostCentralPane.params && typeof topmostCentralPane.params.screen === 'string') {
- return topmostCentralPane.params.screen;
- }
-
- if (!topmostCentralPane.state) {
- return;
- }
-
- return topmostCentralPane.state?.routes.at(-1)?.name;
-}
-
-export default getTopmostWorkspacesCentralPaneName;
diff --git a/src/libs/Navigation/linkingConfig/config.ts b/src/libs/Navigation/linkingConfig/config.ts
index da1f7b2fddfc..66f7d2a355b6 100644
--- a/src/libs/Navigation/linkingConfig/config.ts
+++ b/src/libs/Navigation/linkingConfig/config.ts
@@ -73,17 +73,9 @@ const config: LinkingOptions['config'] = {
[SCREENS.NOT_FOUND]: '*',
[NAVIGATORS.LEFT_MODAL_NAVIGATOR]: {
screens: {
- [SCREENS.LEFT_MODAL.CHAT_FINDER]: {
- screens: {
- [SCREENS.CHAT_FINDER_ROOT]: ROUTES.CHAT_FINDER,
- },
- },
+ [SCREENS.LEFT_MODAL.CHAT_FINDER]: ROUTES.CHAT_FINDER,
[SCREENS.LEFT_MODAL.WORKSPACE_SWITCHER]: {
- screens: {
- [SCREENS.WORKSPACE_SWITCHER.ROOT]: {
- path: ROUTES.WORKSPACE_SWITCHER,
- },
- },
+ path: ROUTES.WORKSPACE_SWITCHER,
},
},
},
@@ -725,49 +717,45 @@ const config: LinkingOptions['config'] = {
[SCREENS.WORKSPACE.INITIAL]: {
path: ROUTES.WORKSPACE_INITIAL.route,
},
- [SCREENS.WORKSPACES_CENTRAL_PANE]: {
- screens: {
- [SCREENS.WORKSPACE.PROFILE]: ROUTES.WORKSPACE_PROFILE.route,
- [SCREENS.WORKSPACE.CARD]: {
- path: ROUTES.WORKSPACE_CARD.route,
- },
- [SCREENS.WORKSPACE.WORKFLOWS]: {
- path: ROUTES.WORKSPACE_WORKFLOWS.route,
- },
- [SCREENS.WORKSPACE.REIMBURSE]: {
- path: ROUTES.WORKSPACE_REIMBURSE.route,
- },
- [SCREENS.WORKSPACE.BILLS]: {
- path: ROUTES.WORKSPACE_BILLS.route,
- },
- [SCREENS.WORKSPACE.INVOICES]: {
- path: ROUTES.WORKSPACE_INVOICES.route,
- },
- [SCREENS.WORKSPACE.TRAVEL]: {
- path: ROUTES.WORKSPACE_TRAVEL.route,
- },
- [SCREENS.WORKSPACE.MEMBERS]: {
- path: ROUTES.WORKSPACE_MEMBERS.route,
- },
- [SCREENS.WORKSPACE.ACCOUNTING.ROOT]: {
- path: ROUTES.POLICY_ACCOUNTING.route,
- },
- [SCREENS.WORKSPACE.CATEGORIES]: {
- path: ROUTES.WORKSPACE_CATEGORIES.route,
- },
- [SCREENS.WORKSPACE.MORE_FEATURES]: {
- path: ROUTES.WORKSPACE_MORE_FEATURES.route,
- },
- [SCREENS.WORKSPACE.TAGS]: {
- path: ROUTES.WORKSPACE_TAGS.route,
- },
- [SCREENS.WORKSPACE.TAXES]: {
- path: ROUTES.WORKSPACE_TAXES.route,
- },
- [SCREENS.WORKSPACE.DISTANCE_RATES]: {
- path: ROUTES.WORKSPACE_DISTANCE_RATES.route,
- },
- },
+ [SCREENS.WORKSPACE.PROFILE]: ROUTES.WORKSPACE_PROFILE.route,
+ [SCREENS.WORKSPACE.CARD]: {
+ path: ROUTES.WORKSPACE_CARD.route,
+ },
+ [SCREENS.WORKSPACE.WORKFLOWS]: {
+ path: ROUTES.WORKSPACE_WORKFLOWS.route,
+ },
+ [SCREENS.WORKSPACE.REIMBURSE]: {
+ path: ROUTES.WORKSPACE_REIMBURSE.route,
+ },
+ [SCREENS.WORKSPACE.BILLS]: {
+ path: ROUTES.WORKSPACE_BILLS.route,
+ },
+ [SCREENS.WORKSPACE.INVOICES]: {
+ path: ROUTES.WORKSPACE_INVOICES.route,
+ },
+ [SCREENS.WORKSPACE.TRAVEL]: {
+ path: ROUTES.WORKSPACE_TRAVEL.route,
+ },
+ [SCREENS.WORKSPACE.MEMBERS]: {
+ path: ROUTES.WORKSPACE_MEMBERS.route,
+ },
+ [SCREENS.WORKSPACE.ACCOUNTING.ROOT]: {
+ path: ROUTES.POLICY_ACCOUNTING.route,
+ },
+ [SCREENS.WORKSPACE.CATEGORIES]: {
+ path: ROUTES.WORKSPACE_CATEGORIES.route,
+ },
+ [SCREENS.WORKSPACE.MORE_FEATURES]: {
+ path: ROUTES.WORKSPACE_MORE_FEATURES.route,
+ },
+ [SCREENS.WORKSPACE.TAGS]: {
+ path: ROUTES.WORKSPACE_TAGS.route,
+ },
+ [SCREENS.WORKSPACE.TAXES]: {
+ path: ROUTES.WORKSPACE_TAXES.route,
+ },
+ [SCREENS.WORKSPACE.DISTANCE_RATES]: {
+ path: ROUTES.WORKSPACE_DISTANCE_RATES.route,
},
},
},
diff --git a/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts b/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts
index d89c6c5a1751..686b790cfb75 100644
--- a/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts
+++ b/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts
@@ -86,11 +86,9 @@ function createFullScreenNavigator(route?: NavigationPartialRoute;
- [SCREENS.LEFT_MODAL.WORKSPACE_SWITCHER]: NavigatorScreenParams;
+ [SCREENS.LEFT_MODAL.CHAT_FINDER]: undefined;
+ [SCREENS.LEFT_MODAL.WORKSPACE_SWITCHER]: undefined;
};
type RightModalNavigatorParamList = {
@@ -745,7 +737,10 @@ type TravelNavigatorParamList = {
[SCREENS.RIGHT_MODAL.SEARCH_REPORT]: NavigatorScreenParams;
};
-type WorkspacesCentralPaneNavigatorParamList = {
+type FullScreenNavigatorParamList = {
+ [SCREENS.WORKSPACE.INITIAL]: {
+ policyID: string;
+ };
[SCREENS.WORKSPACE.PROFILE]: {
policyID: string;
};
@@ -810,13 +805,6 @@ type WorkspacesCentralPaneNavigatorParamList = {
};
};
-type FullScreenNavigatorParamList = {
- [SCREENS.WORKSPACE.INITIAL]: {
- policyID: string;
- };
- [SCREENS.WORKSPACES_CENTRAL_PANE]: NavigatorScreenParams;
-};
-
type OnboardingModalNavigatorParamList = {
[SCREENS.ONBOARDING_MODAL.ONBOARDING]: undefined;
[SCREENS.ONBOARDING.PERSONAL_DETAILS]: undefined;
@@ -907,13 +895,13 @@ type SearchReportParamList = {
};
};
-type RootStackParamList = PublicScreensParamList & AuthScreensParamList & ChatFinderNavigatorParamList;
+type RootStackParamList = PublicScreensParamList & AuthScreensParamList & LeftModalNavigatorParamList;
type BottomTabName = keyof BottomTabNavigatorParamList;
type CentralPaneName = keyof CentralPaneNavigatorParamList;
-type FullScreenName = keyof WorkspacesCentralPaneNavigatorParamList;
+type FullScreenName = keyof FullScreenNavigatorParamList;
type SwitchPolicyIDParams = {
policyID?: string;
@@ -929,7 +917,6 @@ export type {
BottomTabNavigatorParamList,
CentralPaneName,
CentralPaneNavigatorParamList,
- ChatFinderNavigatorParamList,
DetailsNavigatorParamList,
EditRequestNavigatorParamList,
EnablePaymentsNavigatorParamList,
@@ -971,7 +958,5 @@ export type {
TeachersUniteNavigatorParamList,
WalletStatementNavigatorParamList,
WelcomeVideoModalNavigatorParamList,
- WorkspaceSwitcherNavigatorParamList,
- WorkspacesCentralPaneNavigatorParamList,
SearchReportParamList,
};
diff --git a/src/pages/ChatFinderPage/index.tsx b/src/pages/ChatFinderPage/index.tsx
index 21ca18df9263..55b101a7d982 100644
--- a/src/pages/ChatFinderPage/index.tsx
+++ b/src/pages/ChatFinderPage/index.tsx
@@ -35,7 +35,7 @@ type ChatFinderPageOnyxProps = {
isSearchingForReports: OnyxEntry;
};
-type ChatFinderPageProps = ChatFinderPageOnyxProps & StackScreenProps;
+type ChatFinderPageProps = ChatFinderPageOnyxProps & StackScreenProps;
type ChatFinderPageSectionItem = {
data: OptionData[];
diff --git a/src/pages/workspace/WorkspaceInitialPage.tsx b/src/pages/workspace/WorkspaceInitialPage.tsx
index ec33a1ab2aa7..f2bc81e48043 100644
--- a/src/pages/workspace/WorkspaceInitialPage.tsx
+++ b/src/pages/workspace/WorkspaceInitialPage.tsx
@@ -20,7 +20,7 @@ import usePrevious from '@hooks/usePrevious';
import useSingleExecution from '@hooks/useSingleExecution';
import useThemeStyles from '@hooks/useThemeStyles';
import useWaitForNavigation from '@hooks/useWaitForNavigation';
-import getTopmostWorkspacesCentralPaneName from '@libs/Navigation/getTopmostWorkspacesCentralPaneName';
+import getTopmostRouteName from '@libs/Navigation/getTopmostRouteName';
import Navigation from '@libs/Navigation/Navigation';
import * as PolicyUtils from '@libs/PolicyUtils';
import {getDefaultWorkspaceAvatar} from '@libs/ReportUtils';
@@ -92,7 +92,7 @@ function WorkspaceInitialPage({policyDraft, policy: policyProp, reimbursementAcc
const hasPolicyCreationError = !!(policy?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD && !isEmptyObject(policy.errors));
const waitForNavigate = useWaitForNavigation();
const {singleExecution, isExecuting} = useSingleExecution();
- const activeRoute = useNavigationState(getTopmostWorkspacesCentralPaneName);
+ const activeRoute = useNavigationState(getTopmostRouteName);
const {translate} = useLocalize();
const {canUseAccountingIntegrations} = usePermissions();
const {isOffline} = useNetwork();
diff --git a/src/pages/workspace/WorkspaceMembersPage.tsx b/src/pages/workspace/WorkspaceMembersPage.tsx
index 3fdeaba4da7c..43972fbcdfbb 100644
--- a/src/pages/workspace/WorkspaceMembersPage.tsx
+++ b/src/pages/workspace/WorkspaceMembersPage.tsx
@@ -32,7 +32,7 @@ import useWindowDimensions from '@hooks/useWindowDimensions';
import * as DeviceCapabilities from '@libs/DeviceCapabilities';
import Log from '@libs/Log';
import Navigation from '@libs/Navigation/Navigation';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@libs/Navigation/types';
+import type {FullScreenNavigatorParamList} from '@libs/Navigation/types';
import * as OptionsListUtils from '@libs/OptionsListUtils';
import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils';
import * as PolicyUtils from '@libs/PolicyUtils';
@@ -58,7 +58,7 @@ type WorkspaceMembersPageOnyxProps = {
type WorkspaceMembersPageProps = WithPolicyAndFullscreenLoadingProps &
WithCurrentUserPersonalDetailsProps &
WorkspaceMembersPageOnyxProps &
- StackScreenProps;
+ StackScreenProps;
/**
* Inverts an object, equivalent of _.invert
diff --git a/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx b/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx
index 6ef72b228a20..4feaa3ea1030 100644
--- a/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx
+++ b/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx
@@ -13,7 +13,7 @@ import usePermissions from '@hooks/usePermissions';
import useThemeStyles from '@hooks/useThemeStyles';
import useWindowDimensions from '@hooks/useWindowDimensions';
import * as ErrorUtils from '@libs/ErrorUtils';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@libs/Navigation/types';
+import type {FullScreenNavigatorParamList} from '@libs/Navigation/types';
import * as Policy from '@userActions/Policy';
import CONST from '@src/CONST';
import type {TranslationPaths} from '@src/languages/types';
@@ -26,7 +26,7 @@ import type {WithPolicyAndFullscreenLoadingProps} from './withPolicyAndFullscree
import withPolicyAndFullscreenLoading from './withPolicyAndFullscreenLoading';
import ToggleSettingOptionRow from './workflows/ToggleSettingsOptionRow';
-type WorkspaceMoreFeaturesPageProps = WithPolicyAndFullscreenLoadingProps & StackScreenProps;
+type WorkspaceMoreFeaturesPageProps = WithPolicyAndFullscreenLoadingProps & StackScreenProps;
type Item = {
icon: IconAsset;
diff --git a/src/pages/workspace/bills/WorkspaceBillsPage.tsx b/src/pages/workspace/bills/WorkspaceBillsPage.tsx
index e2dbe398b49f..9e1810d74793 100644
--- a/src/pages/workspace/bills/WorkspaceBillsPage.tsx
+++ b/src/pages/workspace/bills/WorkspaceBillsPage.tsx
@@ -4,14 +4,14 @@ import {View} from 'react-native';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import useWindowDimensions from '@hooks/useWindowDimensions';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@navigation/types';
+import type {FullScreenNavigatorParamList} from '@navigation/types';
import WorkspacePageWithSections from '@pages/workspace/WorkspacePageWithSections';
import CONST from '@src/CONST';
import type SCREENS from '@src/SCREENS';
import WorkspaceBillsNoVBAView from './WorkspaceBillsNoVBAView';
import WorkspaceBillsVBAView from './WorkspaceBillsVBAView';
-type WorkspaceBillsPageProps = StackScreenProps;
+type WorkspaceBillsPageProps = StackScreenProps;
function WorkspaceBillsPage({route}: WorkspaceBillsPageProps) {
const {translate} = useLocalize();
diff --git a/src/pages/workspace/card/WorkspaceCardPage.tsx b/src/pages/workspace/card/WorkspaceCardPage.tsx
index 079c715bffd6..eeec0edf106b 100644
--- a/src/pages/workspace/card/WorkspaceCardPage.tsx
+++ b/src/pages/workspace/card/WorkspaceCardPage.tsx
@@ -4,7 +4,7 @@ import {View} from 'react-native';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import useWindowDimensions from '@hooks/useWindowDimensions';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@libs/Navigation/types';
+import type {FullScreenNavigatorParamList} from '@libs/Navigation/types';
import WorkspacePageWithSections from '@pages/workspace/WorkspacePageWithSections';
import CONST from '@src/CONST';
import type SCREENS from '@src/SCREENS';
@@ -12,7 +12,7 @@ import WorkspaceCardNoVBAView from './WorkspaceCardNoVBAView';
import WorkspaceCardVBANoECardView from './WorkspaceCardVBANoECardView';
import WorkspaceCardVBAWithECardView from './WorkspaceCardVBAWithECardView';
-type WorkspaceCardPageProps = StackScreenProps;
+type WorkspaceCardPageProps = StackScreenProps;
function WorkspaceCardPage({route}: WorkspaceCardPageProps) {
const {translate} = useLocalize();
diff --git a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
index ddaa365547fc..cf284142f7a8 100644
--- a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
+++ b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
@@ -28,7 +28,7 @@ import {deleteWorkspaceCategories, setWorkspaceCategoryEnabled} from '@libs/acti
import * as DeviceCapabilities from '@libs/DeviceCapabilities';
import localeCompare from '@libs/LocaleCompare';
import Navigation from '@libs/Navigation/Navigation';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@libs/Navigation/types';
+import type {FullScreenNavigatorParamList} from '@libs/Navigation/types';
import * as PolicyUtils from '@libs/PolicyUtils';
import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper';
import * as Policy from '@userActions/Policy';
@@ -43,7 +43,7 @@ type PolicyOption = ListItem & {
keyForList: string;
};
-type WorkspaceCategoriesPageProps = StackScreenProps;
+type WorkspaceCategoriesPageProps = StackScreenProps;
function WorkspaceCategoriesPage({route}: WorkspaceCategoriesPageProps) {
const {isSmallScreenWidth} = useWindowDimensions();
diff --git a/src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx b/src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx
index 6d444b16bd56..99b7fb65924c 100644
--- a/src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx
+++ b/src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx
@@ -24,7 +24,7 @@ import useWindowDimensions from '@hooks/useWindowDimensions';
import * as CurrencyUtils from '@libs/CurrencyUtils';
import * as DeviceCapabilities from '@libs/DeviceCapabilities';
import Navigation from '@libs/Navigation/Navigation';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@navigation/types';
+import type {FullScreenNavigatorParamList} from '@navigation/types';
import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper';
import * as Policy from '@userActions/Policy';
import ButtonWithDropdownMenu from '@src/components/ButtonWithDropdownMenu';
@@ -42,7 +42,7 @@ type PolicyDistanceRatesPageOnyxProps = {
policy: OnyxEntry;
};
-type PolicyDistanceRatesPageProps = PolicyDistanceRatesPageOnyxProps & StackScreenProps;
+type PolicyDistanceRatesPageProps = PolicyDistanceRatesPageOnyxProps & StackScreenProps;
function PolicyDistanceRatesPage({policy, route}: PolicyDistanceRatesPageProps) {
const {isSmallScreenWidth} = useWindowDimensions();
diff --git a/src/pages/workspace/invoices/WorkspaceInvoicesPage.tsx b/src/pages/workspace/invoices/WorkspaceInvoicesPage.tsx
index a00c4959cedb..ef0a73788dfa 100644
--- a/src/pages/workspace/invoices/WorkspaceInvoicesPage.tsx
+++ b/src/pages/workspace/invoices/WorkspaceInvoicesPage.tsx
@@ -4,14 +4,14 @@ import {View} from 'react-native';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import useWindowDimensions from '@hooks/useWindowDimensions';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@navigation/types';
+import type {FullScreenNavigatorParamList} from '@navigation/types';
import WorkspacePageWithSections from '@pages/workspace/WorkspacePageWithSections';
import CONST from '@src/CONST';
import type SCREENS from '@src/SCREENS';
import WorkspaceInvoicesNoVBAView from './WorkspaceInvoicesNoVBAView';
import WorkspaceInvoicesVBAView from './WorkspaceInvoicesVBAView';
-type WorkspaceInvoicesPageProps = StackScreenProps;
+type WorkspaceInvoicesPageProps = StackScreenProps;
function WorkspaceInvoicesPage({route}: WorkspaceInvoicesPageProps) {
const {translate} = useLocalize();
diff --git a/src/pages/workspace/reimburse/WorkspaceReimbursePage.tsx b/src/pages/workspace/reimburse/WorkspaceReimbursePage.tsx
index 222ece12d29d..6bb15a8a17ce 100644
--- a/src/pages/workspace/reimburse/WorkspaceReimbursePage.tsx
+++ b/src/pages/workspace/reimburse/WorkspaceReimbursePage.tsx
@@ -1,7 +1,7 @@
import type {StackScreenProps} from '@react-navigation/stack';
import React from 'react';
import useLocalize from '@hooks/useLocalize';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@libs/Navigation/types';
+import type {FullScreenNavigatorParamList} from '@libs/Navigation/types';
import type {WithPolicyProps} from '@pages/workspace/withPolicy';
import withPolicy from '@pages/workspace/withPolicy';
import WorkspacePageWithSections from '@pages/workspace/WorkspacePageWithSections';
@@ -9,7 +9,7 @@ import CONST from '@src/CONST';
import type SCREENS from '@src/SCREENS';
import WorkspaceReimburseView from './WorkspaceReimburseView';
-type WorkspaceReimbursePageProps = WithPolicyProps & StackScreenProps;
+type WorkspaceReimbursePageProps = WithPolicyProps & StackScreenProps;
function WorkspaceReimbursePage({route, policy}: WorkspaceReimbursePageProps) {
const {translate} = useLocalize();
diff --git a/src/pages/workspace/tags/WorkspaceTagsPage.tsx b/src/pages/workspace/tags/WorkspaceTagsPage.tsx
index 74211f8f53a2..064129ebec4d 100644
--- a/src/pages/workspace/tags/WorkspaceTagsPage.tsx
+++ b/src/pages/workspace/tags/WorkspaceTagsPage.tsx
@@ -26,7 +26,7 @@ import useWindowDimensions from '@hooks/useWindowDimensions';
import * as DeviceCapabilities from '@libs/DeviceCapabilities';
import localeCompare from '@libs/LocaleCompare';
import Navigation from '@libs/Navigation/Navigation';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@libs/Navigation/types';
+import type {FullScreenNavigatorParamList} from '@libs/Navigation/types';
import * as PolicyUtils from '@libs/PolicyUtils';
import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper';
import * as Policy from '@userActions/Policy';
@@ -37,7 +37,7 @@ import type SCREENS from '@src/SCREENS';
import type DeepValueOf from '@src/types/utils/DeepValueOf';
import type {TagListItem} from './types';
-type WorkspaceTagsPageProps = StackScreenProps;
+type WorkspaceTagsPageProps = StackScreenProps;
function WorkspaceTagsPage({route}: WorkspaceTagsPageProps) {
const {isSmallScreenWidth} = useWindowDimensions();
diff --git a/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx b/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx
index bbedab265c9b..5aa8e709a999 100644
--- a/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx
+++ b/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx
@@ -26,7 +26,7 @@ import * as DeviceCapabilities from '@libs/DeviceCapabilities';
import * as ErrorUtils from '@libs/ErrorUtils';
import Navigation from '@libs/Navigation/Navigation';
import * as PolicyUtils from '@libs/PolicyUtils';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@navigation/types';
+import type {FullScreenNavigatorParamList} from '@navigation/types';
import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper';
import withPolicyAndFullscreenLoading from '@pages/workspace/withPolicyAndFullscreenLoading';
import type {WithPolicyAndFullscreenLoadingProps} from '@pages/workspace/withPolicyAndFullscreenLoading';
@@ -35,7 +35,7 @@ import ROUTES from '@src/ROUTES';
import type SCREENS from '@src/SCREENS';
import type {TaxRate} from '@src/types/onyx';
-type WorkspaceTaxesPageProps = WithPolicyAndFullscreenLoadingProps & StackScreenProps;
+type WorkspaceTaxesPageProps = WithPolicyAndFullscreenLoadingProps & StackScreenProps;
function WorkspaceTaxesPage({
policy,
diff --git a/src/pages/workspace/travel/WorkspaceTravelPage.tsx b/src/pages/workspace/travel/WorkspaceTravelPage.tsx
index c03bcc7cfb9b..1acae9e6d359 100644
--- a/src/pages/workspace/travel/WorkspaceTravelPage.tsx
+++ b/src/pages/workspace/travel/WorkspaceTravelPage.tsx
@@ -4,14 +4,14 @@ import {View} from 'react-native';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import useWindowDimensions from '@hooks/useWindowDimensions';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@libs/Navigation/types';
+import type {FullScreenNavigatorParamList} from '@libs/Navigation/types';
import WorkspacePageWithSections from '@pages/workspace/WorkspacePageWithSections';
import CONST from '@src/CONST';
import type SCREENS from '@src/SCREENS';
import WorkspaceTravelNoVBAView from './WorkspaceTravelNoVBAView';
import WorkspaceTravelVBAView from './WorkspaceTravelVBAView';
-type WorkspaceTravelPageProps = StackScreenProps;
+type WorkspaceTravelPageProps = StackScreenProps;
function WorkspaceTravelPage({route}: WorkspaceTravelPageProps) {
const {translate} = useLocalize();
diff --git a/src/pages/workspace/withPolicy.tsx b/src/pages/workspace/withPolicy.tsx
index 6133795036f5..23d19f458490 100644
--- a/src/pages/workspace/withPolicy.tsx
+++ b/src/pages/workspace/withPolicy.tsx
@@ -12,7 +12,6 @@ import type {
FullScreenNavigatorParamList,
ReimbursementAccountNavigatorParamList,
SettingsNavigatorParamList,
- WorkspacesCentralPaneNavigatorParamList,
} from '@navigation/types';
import * as Policy from '@userActions/Policy';
import CONST from '@src/CONST';
@@ -20,12 +19,7 @@ import ONYXKEYS from '@src/ONYXKEYS';
import type SCREENS from '@src/SCREENS';
import type * as OnyxTypes from '@src/types/onyx';
-type NavigatorsParamList = BottomTabNavigatorParamList &
- CentralPaneNavigatorParamList &
- SettingsNavigatorParamList &
- ReimbursementAccountNavigatorParamList &
- FullScreenNavigatorParamList &
- WorkspacesCentralPaneNavigatorParamList;
+type NavigatorsParamList = BottomTabNavigatorParamList & CentralPaneNavigatorParamList & SettingsNavigatorParamList & ReimbursementAccountNavigatorParamList & FullScreenNavigatorParamList;
type PolicyRoute = RouteProp<
NavigatorsParamList,
diff --git a/src/pages/workspace/workflows/WorkspaceAutoReportingFrequencyPage.tsx b/src/pages/workspace/workflows/WorkspaceAutoReportingFrequencyPage.tsx
index 07553baba356..923c05ae7e15 100644
--- a/src/pages/workspace/workflows/WorkspaceAutoReportingFrequencyPage.tsx
+++ b/src/pages/workspace/workflows/WorkspaceAutoReportingFrequencyPage.tsx
@@ -13,7 +13,7 @@ import useThemeStyles from '@hooks/useThemeStyles';
import * as ErrorUtils from '@libs/ErrorUtils';
import * as Localize from '@libs/Localize';
import Navigation from '@libs/Navigation/Navigation';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@libs/Navigation/types';
+import type {FullScreenNavigatorParamList} from '@libs/Navigation/types';
import * as PolicyUtils from '@libs/PolicyUtils';
import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper';
import withPolicy from '@pages/workspace/withPolicy';
@@ -27,7 +27,7 @@ import {isEmptyObject} from '@src/types/utils/EmptyObject';
type AutoReportingFrequencyKey = Exclude, 'instant'>;
type Locale = ValueOf;
-type WorkspaceAutoReportingFrequencyPageProps = WithPolicyOnyxProps & StackScreenProps;
+type WorkspaceAutoReportingFrequencyPageProps = WithPolicyOnyxProps & StackScreenProps;
type WorkspaceAutoReportingFrequencyPageItem = {
text: string;
diff --git a/src/pages/workspace/workflows/WorkspaceAutoReportingMonthlyOffsetPage.tsx b/src/pages/workspace/workflows/WorkspaceAutoReportingMonthlyOffsetPage.tsx
index 614e17e5b9c9..0732b924801c 100644
--- a/src/pages/workspace/workflows/WorkspaceAutoReportingMonthlyOffsetPage.tsx
+++ b/src/pages/workspace/workflows/WorkspaceAutoReportingMonthlyOffsetPage.tsx
@@ -8,7 +8,7 @@ import SelectionList from '@components/SelectionList';
import RadioListItem from '@components/SelectionList/RadioListItem';
import useLocalize from '@hooks/useLocalize';
import Navigation from '@libs/Navigation/Navigation';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@libs/Navigation/types';
+import type {FullScreenNavigatorParamList} from '@libs/Navigation/types';
import * as PolicyUtils from '@libs/PolicyUtils';
import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper';
import withPolicy from '@pages/workspace/withPolicy';
@@ -20,8 +20,7 @@ import {isEmptyObject} from '@src/types/utils/EmptyObject';
const DAYS_OF_MONTH = 28;
-type WorkspaceAutoReportingMonthlyOffsetProps = WithPolicyOnyxProps &
- StackScreenProps;
+type WorkspaceAutoReportingMonthlyOffsetProps = WithPolicyOnyxProps & StackScreenProps;
type AutoReportingOffsetKeys = ValueOf;
diff --git a/src/pages/workspace/workflows/WorkspaceWorkflowsApproverPage.tsx b/src/pages/workspace/workflows/WorkspaceWorkflowsApproverPage.tsx
index 0c12bace7a4d..3682ef27d2a0 100644
--- a/src/pages/workspace/workflows/WorkspaceWorkflowsApproverPage.tsx
+++ b/src/pages/workspace/workflows/WorkspaceWorkflowsApproverPage.tsx
@@ -14,7 +14,7 @@ import useNetwork from '@hooks/useNetwork';
import {formatPhoneNumber} from '@libs/LocalePhoneNumber';
import Log from '@libs/Log';
import Navigation from '@libs/Navigation/Navigation';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@libs/Navigation/types';
+import type {FullScreenNavigatorParamList} from '@libs/Navigation/types';
import * as OptionsListUtils from '@libs/OptionsListUtils';
import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils';
import * as PolicyUtils from '@libs/PolicyUtils';
@@ -35,7 +35,7 @@ type WorkspaceWorkflowsApproverPageOnyxProps = {
type WorkspaceWorkflowsApproverPageProps = WorkspaceWorkflowsApproverPageOnyxProps &
WithPolicyAndFullscreenLoadingProps &
- StackScreenProps;
+ StackScreenProps;
type MemberOption = Omit & {accountID: number};
type MembersSection = SectionListData>;
diff --git a/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx b/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
index d5753f15c218..58d80fefa88e 100644
--- a/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
+++ b/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
@@ -19,7 +19,7 @@ import Navigation from '@libs/Navigation/Navigation';
import Permissions from '@libs/Permissions';
import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils';
import * as PolicyUtils from '@libs/PolicyUtils';
-import type {WorkspacesCentralPaneNavigatorParamList} from '@navigation/types';
+import type {FullScreenNavigatorParamList} from '@navigation/types';
import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper';
import type {WithPolicyProps} from '@pages/workspace/withPolicy';
import withPolicy from '@pages/workspace/withPolicy';
@@ -40,7 +40,7 @@ type WorkspaceWorkflowsPageOnyxProps = {
/** Beta features list */
betas: OnyxEntry;
};
-type WorkspaceWorkflowsPageProps = WithPolicyProps & WorkspaceWorkflowsPageOnyxProps & StackScreenProps;
+type WorkspaceWorkflowsPageProps = WithPolicyProps & WorkspaceWorkflowsPageOnyxProps & StackScreenProps;
function WorkspaceWorkflowsPage({policy, betas, route}: WorkspaceWorkflowsPageProps) {
const {translate, preferredLocale} = useLocalize();
diff --git a/src/styles/theme/themes/dark.ts b/src/styles/theme/themes/dark.ts
index a68ff1c04d93..f0493a815747 100644
--- a/src/styles/theme/themes/dark.ts
+++ b/src/styles/theme/themes/dark.ts
@@ -129,7 +129,7 @@ const darkTheme = {
backgroundColor: colors.productDark100,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
- [SCREENS.WORKSPACE_SWITCHER.ROOT]: {
+ [SCREENS.LEFT_MODAL.WORKSPACE_SWITCHER]: {
backgroundColor: colors.productDark100,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
diff --git a/src/styles/theme/themes/light.ts b/src/styles/theme/themes/light.ts
index 17e1c03bcdda..cf490a90a7f7 100644
--- a/src/styles/theme/themes/light.ts
+++ b/src/styles/theme/themes/light.ts
@@ -129,7 +129,7 @@ const lightTheme = {
backgroundColor: colors.productLight100,
statusBarStyle: CONST.STATUS_BAR_STYLE.DARK_CONTENT,
},
- [SCREENS.WORKSPACE_SWITCHER.ROOT]: {
+ [SCREENS.LEFT_MODAL.WORKSPACE_SWITCHER]: {
backgroundColor: colors.productLight100,
statusBarStyle: CONST.STATUS_BAR_STYLE.DARK_CONTENT,
},
diff --git a/tests/perf-test/ChatFinderPage.perf-test.tsx b/tests/perf-test/ChatFinderPage.perf-test.tsx
index 9285b3b8b24d..c31201c37b24 100644
--- a/tests/perf-test/ChatFinderPage.perf-test.tsx
+++ b/tests/perf-test/ChatFinderPage.perf-test.tsx
@@ -123,7 +123,7 @@ afterEach(() => {
Onyx.clear();
});
-type ChatFinderPageProps = StackScreenProps & {
+type ChatFinderPageProps = StackScreenProps & {
betas: OnyxEntry;
reports: OnyxCollection;
isSearchingForReports: OnyxEntry;