Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/pages/workspace/WorkspaceMembersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
6 changes: 5 additions & 1 deletion src/pages/workspace/WorkspacePageWithSections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -121,6 +124,7 @@ function WorkspacePageWithSections({
shouldShowThreeDotsButton,
threeDotsMenuItems,
threeDotsAnchorPosition,
shouldUseHeadlineHeader = true,
addBottomSafeAreaPadding = false,
}: WorkspacePageWithSectionsProps) {
const styles = useThemeStyles();
Expand Down Expand Up @@ -206,7 +210,7 @@ function WorkspacePageWithSections({
shouldShowThreeDotsButton={shouldShowThreeDotsButton}
threeDotsMenuItems={threeDotsMenuItems}
threeDotsAnchorPosition={threeDotsAnchorPosition}
shouldUseHeadlineHeader
shouldUseHeadlineHeader={shouldUseHeadlineHeader}
>
{headerContent}
</HeaderWithBackButton>
Expand Down