Skip to content

Commit

Permalink
refactor(client): Remove tooltip delay
Browse files Browse the repository at this point in the history
SS-141
  • Loading branch information
clementprdhomme committed Nov 22, 2024
1 parent 30444ca commit 420369c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/src/components/ui/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import * as React from "react";

import { cn } from "@/lib/utils";

const TooltipProvider = TooltipPrimitive.Provider;
// const TooltipProvider = TooltipPrimitive.Provider;

const TooltipProvider = (
props: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>,
) => <TooltipPrimitive.Provider delayDuration={0} {...props} />;
TooltipProvider.displayName = TooltipPrimitive.Provider.displayName;

const Tooltip = TooltipPrimitive.Root;

Expand Down

0 comments on commit 420369c

Please sign in to comment.