From 4c9203e92123e74c17892661a0bfb4d666f977ee Mon Sep 17 00:00:00 2001 From: Huu Le Date: Fri, 2 Aug 2024 09:18:29 +0200 Subject: [PATCH 1/2] fix: remove goBack when pressing on create new workspace via plus icon --- src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx b/src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx index 36e24036d365..8136392ba3c4 100644 --- a/src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx +++ b/src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx @@ -33,7 +33,6 @@ function WorkspacesSectionHeader() { accessible={false} role={CONST.ROLE.BUTTON} onPress={() => { - Navigation.goBack(); interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt()); }} > From f174aa387931ac94575efd737c1e205f68578176 Mon Sep 17 00:00:00 2001 From: Huu Le Date: Fri, 2 Aug 2024 10:01:33 +0200 Subject: [PATCH 2/2] remove unused imports --- src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx b/src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx index 8136392ba3c4..21b1ff37e0f1 100644 --- a/src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx +++ b/src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx @@ -9,7 +9,6 @@ import useLocalize from '@hooks/useLocalize'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import interceptAnonymousUser from '@libs/interceptAnonymousUser'; -import Navigation from '@libs/Navigation/Navigation'; import * as App from '@userActions/App'; import CONST from '@src/CONST';