Skip to content

Commit

Permalink
remove pointless ref (#645)
Browse files Browse the repository at this point in the history
Co-authored-by: turbocrime <[email protected]>
  • Loading branch information
turbocrime and turbocrime authored Mar 1, 2024
1 parent b8dedd2 commit c48bf45
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/ui/components/ui/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof TooltipPrimitive.Provider>,
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>
>(props => <TooltipPrimitive.Provider delayDuration={0} {...props} />);
const TooltipProvider = (props: React.ComponentProps<typeof TooltipPrimitive.Provider>) => (
<TooltipPrimitive.Provider delayDuration={0} {...props} />
);
TooltipProvider.displayName = TooltipPrimitive.Provider.displayName;

const Tooltip = TooltipPrimitive.Root;
Expand Down

0 comments on commit c48bf45

Please sign in to comment.