From 5617aa3fe7b93db44e788e7ff7b79ae40ef6228b Mon Sep 17 00:00:00 2001 From: Jakub Kosmydel <104823336+kosmydel@users.noreply.github.com> Date: Thu, 4 Jan 2024 12:53:29 +0100 Subject: [PATCH 1/3] fix back button --- src/components/HeaderWithBackButton/types.ts | 3 --- src/pages/workspace/WorkspacesListPage.js | 5 ++--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/HeaderWithBackButton/types.ts b/src/components/HeaderWithBackButton/types.ts index 092b4df14082..9ffb0b5ef2f3 100644 --- a/src/components/HeaderWithBackButton/types.ts +++ b/src/components/HeaderWithBackButton/types.ts @@ -108,9 +108,6 @@ type HeaderWithBackButtonProps = Partial & { /** Whether we should enable detail page navigation */ shouldEnableDetailPageNavigation?: boolean; - - /** TEMP: Will be removed in my other PR */ - shouldUseCentralPaneView: boolean; }; export default HeaderWithBackButtonProps; diff --git a/src/pages/workspace/WorkspacesListPage.js b/src/pages/workspace/WorkspacesListPage.js index 519cd741623c..9b9f7680e68f 100755 --- a/src/pages/workspace/WorkspacesListPage.js +++ b/src/pages/workspace/WorkspacesListPage.js @@ -298,7 +298,7 @@ function WorkspacesListPage({policies, allPolicyMembers, reimbursementAccount, c onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS.ROOT)} title={translate('common.workspaces')} style={!isSmallScreenWidth && styles.alignItemsCenter} - shouldUseCentralPaneView + shouldShowBackButton={isSmallScreenWidth} footer={ isSmallScreenWidth && (