Skip to content

Commit

Permalink
Update Tooltip.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ArhanAnsari authored Oct 7, 2024
1 parent 6775ad7 commit 4ec2d96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from "react";
import ReactTooltip from "react-tooltip";
import { Tooltip as ReactTooltip } from "react-tooltip"; // Use named import

const Tooltip: React.FC<{ id: string; text: string; children: React.ReactNode }> = ({ id, text, children }) => (
<>
<span className="relative cursor-pointer underline" data-tip={text} data-for={id}>
<span className="relative cursor-pointer underline" data-tooltip-id={id} data-tooltip-content={text}>
{children}
</span>
<ReactTooltip id={id} effect="solid" />
Expand Down

0 comments on commit 4ec2d96

Please sign in to comment.