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 fca6627 commit 6775ad7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions components/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import React from "react";
import ReactTooltip from "react-tooltip";

const Tooltip: React.FC<{ id: string; text: string }> = ({ id, text }) => (
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-tip={text} data-for={id}>
{children}
</span>
<ReactTooltip id={id} effect="solid" />
</>
Expand Down

0 comments on commit 6775ad7

Please sign in to comment.