Skip to content

Commit

Permalink
refactor(wz-text-tooltip): rename buildContent to renderContent for i…
Browse files Browse the repository at this point in the history
…mproved readability in WzTextWithTooltipIfTruncated component
  • Loading branch information
guidomodarelli committed Dec 11, 2024
1 parent 0ab2271 commit 1ad68b9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class WzTextWithTooltipIfTruncated extends Component<WzTextWithTo
}
}

buildContent() {
renderContent() {
return (
<span
ref={this.contentReference}
Expand All @@ -88,10 +88,10 @@ export default class WzTextWithTooltipIfTruncated extends Component<WzTextWithTo
{...this.props.tooltipProps}
anchorClassName='wz-width-100'
>
{this.buildContent()}
{this.renderContent()}
</EuiToolTip>
) : (
this.buildContent()
this.renderContent()
);
}
}

0 comments on commit 1ad68b9

Please sign in to comment.