File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/packages/hint/components Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { Tooltip, TooltipProps } from "../../tooltip/tooltip";
2
2
import dom from "../../dom" ;
3
3
import { tooltipTextClassName } from "../className" ;
4
4
import { HintItem } from "../hintItem" ;
5
+ import { TooltipContent } from "../../tooltip/tooltipContent" ;
5
6
6
7
const { a, p, div } = dom . tags ;
7
8
@@ -26,6 +27,8 @@ export const HintTooltip = ({
26
27
className,
27
28
...props
28
29
} : HintTooltipProps ) => {
30
+ const text = hintItem . hint ;
31
+
29
32
return Tooltip (
30
33
{
31
34
...props ,
@@ -46,6 +49,11 @@ export const HintTooltip = ({
46
49
[
47
50
div (
48
51
{ className : `${ tooltipTextClassName } ${ className || "" } ` } ,
52
+ TooltipContent ( {
53
+ text : text || "" ,
54
+ tooltipRenderAsHtml : props . renderAsHtml ,
55
+ className : tooltipTextClassName ,
56
+ } ) ,
49
57
p ( hintItem . hint || "" ) ,
50
58
closeButtonEnabled
51
59
? a (
You can’t perform that action at this time.
0 commit comments