Skip to content

Commit

Permalink
fix: show the three dot menu button only when there are menu items to…
Browse files Browse the repository at this point in the history
… display
  • Loading branch information
Hayata Suenaga committed May 2, 2024
1 parent fd4197b commit 3571b8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/workspace/categories/CategorySettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function CategorySettingsPage({route, policyCategories}: CategorySettingsPagePro
testID={CategorySettingsPage.displayName}
>
<HeaderWithBackButton
shouldShowThreeDotsButton
shouldShowThreeDotsButton={threeDotsMenuItems.length > 0}
title={route.params.categoryName}
threeDotsAnchorPosition={styles.threeDotsPopoverOffsetNoCloseButton(windowWidth)}
threeDotsMenuItems={threeDotsMenuItems}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/tags/TagSettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function TagSettingsPage({route, policyTags}: TagSettingsPageProps) {
>
<HeaderWithBackButton
title={PolicyUtils.getCleanedTagName(route.params.tagName)}
shouldShowThreeDotsButton
shouldShowThreeDotsButton={threeDotsMenuItems.length > 0}
shouldSetModalVisibility={false}
threeDotsAnchorPosition={styles.threeDotsPopoverOffset(windowWidth)}
threeDotsMenuItems={threeDotsMenuItems}
Expand Down

0 comments on commit 3571b8f

Please sign in to comment.