From c48bf45e41f5c023380d3501be15ebf2619d1821 Mon Sep 17 00:00:00 2001 From: turbocrime <134443988+turbocrime@users.noreply.github.com> Date: Fri, 1 Mar 2024 01:32:44 -0800 Subject: [PATCH] remove pointless ref (#645) Co-authored-by: turbocrime --- packages/ui/components/ui/tooltip.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/ui/components/ui/tooltip.tsx b/packages/ui/components/ui/tooltip.tsx index 64cf4ad445..74fe4195e8 100644 --- a/packages/ui/components/ui/tooltip.tsx +++ b/packages/ui/components/ui/tooltip.tsx @@ -4,10 +4,9 @@ import * as React from 'react'; import * as TooltipPrimitive from '@radix-ui/react-tooltip'; import { cn } from '../../lib/utils'; -const TooltipProvider = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(props => ); +const TooltipProvider = (props: React.ComponentProps) => ( + +); TooltipProvider.displayName = TooltipPrimitive.Provider.displayName; const Tooltip = TooltipPrimitive.Root;