diff --git a/src/pages/workspace/WorkspaceMembersPage.tsx b/src/pages/workspace/WorkspaceMembersPage.tsx index 10d10b8513aa..af1d53fbdb15 100644 --- a/src/pages/workspace/WorkspaceMembersPage.tsx +++ b/src/pages/workspace/WorkspaceMembersPage.tsx @@ -670,6 +670,7 @@ function WorkspaceMembersPage({personalDetails, route, policy, currentUserPerson headerContent={!shouldUseNarrowLayout && getHeaderButtons()} testID={WorkspaceMembersPage.displayName} shouldShowLoading={false} + shouldUseHeadlineHeader={!selectionModeHeader} shouldShowOfflineIndicatorInWideScreen shouldShowThreeDotsButton={isPolicyAdmin} threeDotsMenuItems={threeDotsMenuItems} diff --git a/src/pages/workspace/WorkspacePageWithSections.tsx b/src/pages/workspace/WorkspacePageWithSections.tsx index 8aa22af40ec7..8fdc16387a2d 100644 --- a/src/pages/workspace/WorkspacePageWithSections.tsx +++ b/src/pages/workspace/WorkspacePageWithSections.tsx @@ -83,6 +83,9 @@ type WorkspacePageWithSectionsProps = WithPolicyAndFullscreenLoadingProps & /** Whether the page is loading, example any other API call in progres */ isLoading?: boolean; + /** Whether to use the headline header */ + shouldUseHeadlineHeader?: boolean; + /** * If enabled, the content will have a bottom padding equal to account for the safe bottom area inset. */ @@ -121,6 +124,7 @@ function WorkspacePageWithSections({ shouldShowThreeDotsButton, threeDotsMenuItems, threeDotsAnchorPosition, + shouldUseHeadlineHeader = true, addBottomSafeAreaPadding = false, }: WorkspacePageWithSectionsProps) { const styles = useThemeStyles(); @@ -206,7 +210,7 @@ function WorkspacePageWithSections({ shouldShowThreeDotsButton={shouldShowThreeDotsButton} threeDotsMenuItems={threeDotsMenuItems} threeDotsAnchorPosition={threeDotsAnchorPosition} - shouldUseHeadlineHeader + shouldUseHeadlineHeader={shouldUseHeadlineHeader} > {headerContent}