From 29d051d91f5e72232bd44eeabf33f31e5401e6d0 Mon Sep 17 00:00:00 2001 From: tienifr Date: Tue, 26 Mar 2024 10:59:32 +0700 Subject: [PATCH] fix: Preferences page is visible for a moment when navigate via text link in Focus Mode popup --- src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts b/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts index e4a8464d7ddd..f68a881554c4 100644 --- a/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts +++ b/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts @@ -159,6 +159,11 @@ function getAdaptedState(state: PartialState const lhpNavigator = state.routes.find((route) => route.name === NAVIGATORS.LEFT_MODAL_NAVIGATOR); const reportAttachmentsScreen = state.routes.find((route) => route.name === SCREENS.REPORT_ATTACHMENTS); + if (isNarrowLayout) { + metainfo.isFullScreenNavigatorMandatory = false; + metainfo.isCentralPaneAndBottomTabMandatory = false; + } + if (rhpNavigator) { // Routes // - matching bottom tab