Skip to content

Commit

Permalink
Merge pull request Expensify#51904 from Krishna2323/krishna2323/issue…
Browse files Browse the repository at this point in the history
…/51500

fix: Remove the redundant + New workspace button from the Workspaces page when no workspaces exist.
  • Loading branch information
thienlnam authored Nov 4, 2024
2 parents 8c5d6a6 + 0a7b7a4 commit d545b81
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pages/workspace/WorkspacesListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,7 @@ function WorkspacesListPage() {
shouldDisplaySearchRouter
onBackButtonPress={() => Navigation.goBack()}
icon={Illustrations.BigRocket}
>
{!shouldUseNarrowLayout && getHeaderButton()}
</HeaderWithBackButton>
{shouldUseNarrowLayout && <View style={[styles.pl5, styles.pr5]}>{getHeaderButton()}</View>}
/>
<ScrollView contentContainerStyle={styles.pt3}>
<View style={[styles.flex1, isLessThanMediumScreen ? styles.workspaceSectionMobile : styles.workspaceSection]}>
<FeatureList
Expand Down

0 comments on commit d545b81

Please sign in to comment.