Skip to content

Commit

Permalink
Merge pull request #52623 from cretadn22/remove-plus-icon
Browse files Browse the repository at this point in the history
Remove plus icon on workspace switcher modal
  • Loading branch information
marcochavezf authored Nov 18, 2024
2 parents 4829ac9 + eeb4a30 commit c24bc88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 64 deletions.
62 changes: 0 additions & 62 deletions src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx

This file was deleted.

10 changes: 8 additions & 2 deletions src/pages/WorkspaceSwitcherPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import {isEmptyObject} from '@src/types/utils/EmptyObject';
import WorkspaceCardCreateAWorkspace from './WorkspaceCardCreateAWorkspace';
import WorkspacesSectionHeader from './WorkspacesSectionHeader';

type WorkspaceListItem = {
text: string;
Expand Down Expand Up @@ -183,7 +182,14 @@ function WorkspaceSwitcherPage() {
pressableStyle={styles.flexRow}
shouldSyncFocus={false}
/>
<WorkspacesSectionHeader shouldShowCreateWorkspaceIcon={!shouldShowCreateWorkspace} />
<View style={[styles.ph5, styles.mv2]}>
<Text
style={styles.label}
color={theme.textSupporting}
>
{translate('common.workspaces')}
</Text>
</View>
<SelectionList<WorkspaceListItem>
ListItem={UserListItem}
sections={sections}
Expand Down

0 comments on commit c24bc88

Please sign in to comment.