fix: show onhover menu only in edit mode (#17034)
* fix on markdown hover menu * lint-fix
This commit is contained in:
parent
e32a12fa0b
commit
bdbcfbc8fc
|
|
@ -350,11 +350,13 @@ class Markdown extends React.PureComponent {
|
|||
className="dashboard-component dashboard-component-chart-holder"
|
||||
data-test="dashboard-component-chart-holder"
|
||||
>
|
||||
<HoverMenu position="top">
|
||||
<DeleteComponentButton
|
||||
onDelete={this.handleDeleteComponent}
|
||||
/>
|
||||
</HoverMenu>
|
||||
{editMode && (
|
||||
<HoverMenu position="top">
|
||||
<DeleteComponentButton
|
||||
onDelete={this.handleDeleteComponent}
|
||||
/>
|
||||
</HoverMenu>
|
||||
)}
|
||||
{editMode && isEditing
|
||||
? this.renderEditMode()
|
||||
: this.renderPreviewMode()}
|
||||
|
|
|
|||
Loading…
Reference in New Issue