Skip to content

Commit

Permalink
AI Proofread: Allow dismiss after suggesting (#38848)
Browse files Browse the repository at this point in the history
* AI Proofread: Allow dismiss on all states

* changelog
  • Loading branch information
renatoagds authored Aug 13, 2024
1 parent 07018d1 commit 7700ade
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/changelog/fix-breve-dismiss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: other

Allow dismiss suggestion in all states
Original file line number Diff line number Diff line change
Expand Up @@ -256,16 +256,12 @@ export default function Highlight() {
</Button>
) }
<div className="jetpack-ai-breve__helper">
{ hasSuggestions ? (
__( 'Click on the suggestion to insert it.', 'jetpack' )
) : (
<>
{ description }
<Button variant="link" onClick={ handleIgnoreSuggestion }>
{ __( 'Dismiss', 'jetpack' ) }
</Button>
</>
) }
{ hasSuggestions
? __( 'Click on the suggestion to insert it.', 'jetpack' )
: description }
<Button variant="link" onClick={ handleIgnoreSuggestion }>
{ __( 'Dismiss', 'jetpack' ) }
</Button>
</div>
</div>
</div>
Expand Down

0 comments on commit 7700ade

Please sign in to comment.