Skip to content

Commit b68d8ed

Browse files
aagam-shahclaude
andcommitted
Hide header button whenever banner is not dismissed
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e03390e commit b68d8ed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/plugins/jetpack/_inc/content-guidelines-ai/components/suggest-all-button.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ export default function SuggestAllButton() {
2222
const improveLabel = __( 'Improve guidelines', 'jetpack' );
2323
const label = allEmpty ? generateLabel : improveLabel;
2424

25-
// Hide when the banner is visible (all empty + not dismissed).
26-
const showBanner = allEmpty && ! bannerDismissed;
27-
const hiddenProps = showBanner ? { style: { display: 'none' }, 'aria-hidden': true } : {};
25+
// Hide when the banner is visible (not yet dismissed).
26+
const hiddenProps = ! bannerDismissed ? { style: { display: 'none' }, 'aria-hidden': true } : {};
2827

2928
return (
3029
<Button

0 commit comments

Comments
 (0)