Skip to content

Commit

Permalink
CYS - fix warning Tooltip (#45592)
Browse files Browse the repository at this point in the history
* CYS - fix warning

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
  • Loading branch information
gigitux and github-actions committed Mar 15, 2024
1 parent 6016aad commit e5d33df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ import Iframe from './iframe';

const WithToolTip = ( { showTooltip, title, children } ) => {
if ( showTooltip ) {
return <Tooltip text={ title }>{ children }</Tooltip>;
return (
<Tooltip text={ title }>
<span>{ children }</span>
</Tooltip>
);
}
return <>{ children }</>;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

CYS - fix warning Tooltip

0 comments on commit e5d33df

Please sign in to comment.