Added mathjax formulas for favor and made favor calculation faster.

This commit is contained in:
Olivier Gagnon
2021-09-02 03:10:12 -04:00
parent fd85a00b8f
commit 454a792f0a
9 changed files with 196 additions and 43 deletions
+4 -4
View File
@@ -6,18 +6,18 @@ import * as React from "react";
export interface IParagraphWithTooltipProps {
style?: any;
content: JSX.Element;
tooltip: string;
tooltip: string | React.ReactElement | JSX.Element;
}
export class ParagraphWithTooltip extends React.Component<IParagraphWithTooltipProps, any> {
render(): React.ReactNode {
return (
<p className={"tooltip"} style={this.props.style}>
{this.props.content}
<div className={"tooltip"} style={this.props.style}>
<p>{this.props.content}</p>
<span className={"tooltiptext"}>
{this.props.tooltip}
</span>
</p>
</div>
)
}
}