Skip to content

Commit

Permalink
fix deeplinks
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Dec 18, 2023
1 parent 0853f6c commit 89e4478
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const addCentralPaneNavigatorRoute = (state: State<RootStackParamList>) => {

const bottomTabRoute = state.routes.filter((route) => route.name === NAVIGATORS.BOTTOM_TAB_NAVIGATOR);
const centralPaneRoutes = state.routes.filter((route) => route.name === NAVIGATORS.CENTRAL_PANE_NAVIGATOR);
const fullScreenRoutes = state.routes.filter((route) => route.name === NAVIGATORS.FULL_SCREEN_NAVIGATOR);

// TODO-IDEAL Both RHP and LHP add condition for the LHP
const modalRoutes = state.routes.filter((route) => route.name === NAVIGATORS.RIGHT_MODAL_NAVIGATOR);
Expand All @@ -37,7 +38,7 @@ const addCentralPaneNavigatorRoute = (state: State<RootStackParamList>) => {

// @ts-expect-error Updating read only property
// noinspection JSConstantReassignment
state.routes = [...bottomTabRoute, ...centralPaneRoutes, centralPaneNavigatorRoute, ...modalRoutes]; // eslint-disable-line
state.routes = [...bottomTabRoute, ...centralPaneRoutes, centralPaneNavigatorRoute, ...fullScreenRoutes, ...modalRoutes]; // eslint-disable-line

// @ts-expect-error Updating read only property
// noinspection JSConstantReassignment
Expand Down

0 comments on commit 89e4478

Please sign in to comment.