From 7700adebc43d3a5ecddf333645e1fd99c39451a1 Mon Sep 17 00:00:00 2001 From: Renato Augusto Gama dos Santos Date: Tue, 13 Aug 2024 14:27:06 -0300 Subject: [PATCH] AI Proofread: Allow dismiss after suggesting (#38848) * AI Proofread: Allow dismiss on all states * changelog --- .../plugins/jetpack/changelog/fix-breve-dismiss | 4 ++++ .../components/breve/highlight/index.tsx | 16 ++++++---------- 2 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 projects/plugins/jetpack/changelog/fix-breve-dismiss diff --git a/projects/plugins/jetpack/changelog/fix-breve-dismiss b/projects/plugins/jetpack/changelog/fix-breve-dismiss new file mode 100644 index 0000000000000..bf3f7e14232b3 --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-breve-dismiss @@ -0,0 +1,4 @@ +Significance: minor +Type: other + +Allow dismiss suggestion in all states diff --git a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/breve/highlight/index.tsx b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/breve/highlight/index.tsx index c2de1856ad95c..a93b44d11e151 100644 --- a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/breve/highlight/index.tsx +++ b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/breve/highlight/index.tsx @@ -256,16 +256,12 @@ export default function Highlight() { ) }
- { hasSuggestions ? ( - __( 'Click on the suggestion to insert it.', 'jetpack' ) - ) : ( - <> - { description } - - - ) } + { hasSuggestions + ? __( 'Click on the suggestion to insert it.', 'jetpack' ) + : description } +