Skip to content

Commit

Permalink
wc: Remove renderContent method in tool-header #TASK-7216 #TASK-7100
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes committed Jan 8, 2025
1 parent 3d82af8 commit 9b9b49d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/webcomponents/commons/tool-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ export default class ToolHeader extends LitElement {
}
}

renderContent(content) {
return (typeof content === "function") ? content() : content;
}

render() {
return html`
<div class="d-flex align-items-center my-3 py-2 ${this.class ?? ""}">
Expand All @@ -78,7 +74,7 @@ export default class ToolHeader extends LitElement {
<h3>${this.subtitle}</h3>
` : nothing}
${(this.rightContent || this.rhs) ? html`
<div class="ms-auto">${this.renderContent(this.rightContent || this.rhs)}</div>
<div class="ms-auto">${this.rightContent || this.rhs}</div>
` : nothing}
</div>
`;
Expand Down

0 comments on commit 9b9b49d

Please sign in to comment.