From 7f9de4b18053161f8d05cf3f63fcf3e5e6faab84 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Thu, 9 Mar 2023 10:59:29 -0800 Subject: [PATCH] Fix transition props --- src/renderer/components/tooltip/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/tooltip/index.tsx b/src/renderer/components/tooltip/index.tsx index 9e2d4b9d..8c3822af 100644 --- a/src/renderer/components/tooltip/index.tsx +++ b/src/renderer/components/tooltip/index.tsx @@ -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, };