-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: showing warning for top validators on staking (#1448)
- Loading branch information
1 parent
9c789c2
commit 739910d
Showing
3 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Tooltip } from "@namada/components"; | ||
import clsx from "clsx"; | ||
import { twMerge } from "tailwind-merge"; | ||
|
||
type IconTooltipProps = { | ||
icon: React.ReactNode; | ||
text: string; | ||
className?: string; | ||
}; | ||
|
||
export const IconTooltip = ({ | ||
icon, | ||
text, | ||
className, | ||
}: IconTooltipProps): JSX.Element => { | ||
return ( | ||
<i | ||
className={twMerge( | ||
clsx( | ||
"group/tooltip bg-neutral-600 inline-flex not-italic text-[8px]", | ||
"w-3.5 h-3.5 rounded-full items-center justify-center", | ||
className | ||
) | ||
)} | ||
> | ||
{icon} | ||
<Tooltip className="z-50 w-68">{text}</Tooltip> | ||
</i> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
739910d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://namada-interface-dev.netlify.app as production
🚀 Deployed on https://676d7cfb2e751fedc2e293fc--namada-interface-dev.netlify.app