fix sleeve memory bug

This commit is contained in:
Olivier Gagnon
2021-09-08 23:47:34 -04:00
parent bada8a5f39
commit 2a13db39c7
360 changed files with 5424 additions and 15764 deletions
+3 -15
View File
@@ -14,10 +14,7 @@ type IInnerHTMLMarkup = {
__html: string;
};
export class StdButtonPurchased extends React.Component<
IStdButtonPurchasedProps,
any
> {
export class StdButtonPurchased extends React.Component<IStdButtonPurchasedProps, any> {
constructor(props: IStdButtonPurchasedProps) {
super(props);
this.hasTooltip = this.hasTooltip.bind(this);
@@ -50,18 +47,9 @@ export class StdButtonPurchased extends React.Component<
}
return (
<button
className={className}
onClick={this.props.onClick}
style={this.props.style}
>
<button className={className} onClick={this.props.onClick} style={this.props.style}>
{this.props.text}
{this.hasTooltip() && (
<span
className={"tooltiptext"}
dangerouslySetInnerHTML={tooltipMarkup}
></span>
)}
{this.hasTooltip() && <span className={"tooltiptext"} dangerouslySetInnerHTML={tooltipMarkup}></span>}
</button>
);
}