Fix transition props

This commit is contained in:
jeffvli 2023-03-09 10:59:29 -08:00
parent 231f10cbe2
commit 7f9de4b180

View file

@ -27,6 +27,10 @@ export const Tooltip = ({ children, ...rest }: TooltipProps) => {
maxWidth: '250px',
},
}}
transitionProps={{
duration: 250,
transition: 'fade',
}}
{...rest}
>
{children}
@ -37,8 +41,6 @@ export const Tooltip = ({ children, ...rest }: TooltipProps) => {
Tooltip.defaultProps = {
openDelay: 0,
position: 'top',
transition: 'fade',
transitionDuration: 250,
withArrow: true,
withinPortal: true,
};