Skip to content

Commit

Permalink
remove back to edit button (#34675)
Browse files Browse the repository at this point in the history
  • Loading branch information
CGastrell committed Dec 15, 2023
1 parent 4c74f02 commit 8f11230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: removed

AI Client: remove "back to edit" button
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ import {
useCallback,
} from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import {
Icon,
closeSmall,
check,
arrowUp,
arrowLeft,
trash,
reusableBlock,
} from '@wordpress/icons';
import { Icon, closeSmall, check, arrowUp, trash, reusableBlock } from '@wordpress/icons';
import classNames from 'classnames';
import React from 'react';
/**
Expand Down Expand Up @@ -248,16 +240,6 @@ export function AIControl(
<div className="jetpack-components-ai-control__controls-prompt_button_wrapper">
{ ( value?.length > 0 || lastValue === null ) && (
<ButtonGroup>
{ value.length > 0 && (
<Button
className="jetpack-components-ai-control__controls-prompt_button"
label={ __( 'Back to edit', 'jetpack-ai-client' ) }
onClick={ () => setEditRequest( true ) }
tooltipPosition="top"
>
<Icon icon={ arrowLeft } />
</Button>
) }
<Button
className="jetpack-components-ai-control__controls-prompt_button"
label={ __( 'Discard', 'jetpack-ai-client' ) }
Expand Down

0 comments on commit 8f11230

Please sign in to comment.