File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export type HintTooltipProps = Omit<
16
16
closeButtonLabel : string ;
17
17
closeButtonClassName : string ;
18
18
className ?: string ;
19
+ renderAsHtml ?: boolean ;
19
20
} ;
20
21
21
22
export const HintTooltip = ( {
@@ -25,6 +26,7 @@ export const HintTooltip = ({
25
26
closeButtonLabel,
26
27
closeButtonClassName,
27
28
className,
29
+ renderAsHtml,
28
30
...props
29
31
} : HintTooltipProps ) => {
30
32
const text = hintItem . hint ;
@@ -51,7 +53,7 @@ export const HintTooltip = ({
51
53
{ className : `${ tooltipTextClassName } ${ className || "" } ` } ,
52
54
TooltipContent ( {
53
55
text : text || "" ,
54
- tooltipRenderAsHtml : props . renderAsHtml ,
56
+ tooltipRenderAsHtml : renderAsHtml ,
55
57
className : tooltipTextClassName ,
56
58
} ) ,
57
59
p ( hintItem . hint || "" ) ,
Original file line number Diff line number Diff line change @@ -315,8 +315,6 @@ export type TooltipProps = {
315
315
autoPosition : boolean ;
316
316
positionPrecedence : TooltipPosition [ ] ;
317
317
318
- renderAsHtml ?: boolean ;
319
-
320
318
onClick ?: ( e : any ) => void ;
321
319
className ?: string ;
322
320
} ;
Original file line number Diff line number Diff line change @@ -406,6 +406,7 @@ export type TourTooltipProps = Omit<
406
406
407
407
dontShowAgain : boolean ;
408
408
dontShowAgainLabel : string ;
409
+ renderAsHtml ?: boolean ;
409
410
onDontShowAgainChange : ( checked : boolean ) => void ;
410
411
} ;
411
412
@@ -443,6 +444,7 @@ export const TourTooltip = ({
443
444
dontShowAgain,
444
445
onDontShowAgainChange,
445
446
dontShowAgainLabel,
447
+ renderAsHtml,
446
448
...props
447
449
} : TourTooltipProps ) => {
448
450
const children = [ ] ;
@@ -455,7 +457,7 @@ export const TourTooltip = ({
455
457
children . push (
456
458
TooltipContent ( {
457
459
text,
458
- tooltipRenderAsHtml : props . renderAsHtml ,
460
+ tooltipRenderAsHtml : renderAsHtml ,
459
461
className : tooltipTextClassName ,
460
462
} )
461
463
) ;
You can’t perform that action at this time.
0 commit comments