Skip to content

Commit 339fce2

Browse files
Nikolai Lopinnlopin
Nikolai Lopin
authored andcommitted
fix(tooltip): use correct props with children type
1 parent 362adc7 commit 339fce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Tooltip/Tooltip.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ interface TooltipProps {
138138
alwaysVisible?: boolean;
139139
}
140140

141-
const Tooltip: React.FC<TooltipProps> = ({
141+
const Tooltip: React.FC<PropsWithChildren<TooltipProps>> = ({
142142
content,
143143
children,
144144
placement = 'top',
145145
alwaysVisible = false,
146146
inverted = false
147-
}: PropsWithChildren<TooltipProps>) => {
147+
}) => {
148148
const [isVisible, setIsVisible] = React.useState(alwaysVisible);
149149
/**
150150
* triggerReference and contentReference are used with the Popper library in order to get the tooltip styles and attributes

0 commit comments

Comments
 (0)