Skip to content

Commit f5233bf

Browse files
committed
fix(tooltip): update tooltip return type
1 parent 19542f0 commit f5233bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/components/molecules/tooltip/Tooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const Tooltip = (props: TooltipProps): React.ReactElement => {
118118

119119
if (!showTooltip) {
120120
// If showTooltip is false skip the Popover and return the children directly
121-
return <>{children}</>;
121+
return (<>{children}</>) as React.ReactElement;
122122
}
123123

124124
const tooltipClass = classNames({
@@ -154,7 +154,7 @@ export const Tooltip = (props: TooltipProps): React.ReactElement => {
154154
{tooltipWrapper}
155155
</Popover>
156156
) : (
157-
<>{renderChildren}</>
157+
((<>{renderChildren}</>) as React.ReactElement)
158158
);
159159
}
160160

0 commit comments

Comments
 (0)