File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- import { PropsWithChildren } from 'react' ;
21import * as React from 'react' ;
32import styled , { keyframes } from 'styled-components' ;
43import { usePopper } from 'react-popper' ;
54import { Placement } from '@popperjs/core/lib/enums' ;
65import { variant } from 'styled-system' ;
6+
7+ import type { PropsWithChildren } from 'react' ;
8+
79import { MediaQueries , SemanticColors } from '../../essentials' ;
810import { get } from '../../utils/themeGet' ;
911import { Text } from '../Text/Text' ;
@@ -138,13 +140,13 @@ interface TooltipProps {
138140 alwaysVisible ?: boolean ;
139141}
140142
141- const Tooltip : React . FC < TooltipProps > = ( {
143+ const Tooltip : React . FC < PropsWithChildren < TooltipProps > > = ( {
142144 content,
143145 children,
144146 placement = 'top' ,
145147 alwaysVisible = false ,
146148 inverted = false
147- } : PropsWithChildren < TooltipProps > ) => {
149+ } ) => {
148150 const [ isVisible , setIsVisible ] = React . useState ( alwaysVisible ) ;
149151 /**
150152 * triggerReference and contentReference are used with the Popper library in order to get the tooltip styles and attributes
You can’t perform that action at this time.
0 commit comments