Skip to content

Commit

Permalink
feat: update tooltip small text (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyv09 authored Jan 15, 2025
1 parent 75477bf commit b4f73e5
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/frontend/src/components/InfoIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
TooltipTrigger,
} from '@/components/ui/tooltip';
import { Info } from 'lucide-react';
import { ReactNode } from 'react';
import type { ReactNode } from 'react';
export const InfoIcon = ({ text }: { text: ReactNode }) => {
return (
<TooltipProvider delayDuration={100}>
Expand Down
28 changes: 28 additions & 0 deletions apps/frontend/src/components/Navbar/Points.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,34 @@ export const Points = () => {
Points Leaderboard
</Button>
</Link>

<div className="flex flex-col mt-4 gap-y-2 items-center border border-white/10 w-full p-2 rounded-xl">
<div className="text-primary">Fuel Rewards</div>
<div className={cn('text-lavender font-semibold')}>
Season 1 - Part 1
</div>
<div className=" text-[#F4B845] text-lg font-semibold">
Calculating
</div>
</div>
<div className="px-1 text-[10px] italic text-moon">
<div className="">
<span className="font-semibold">Disclaimer</span>: Fuel Rewards will
be visible after the distribution:
</div>
<div className=" w-full mt-2 flex justify-center">
<div>
<div>
- <span className="font-semibold">After Day 30</span>: Initial
distribution of rewards.
</div>
<div>
- <span className="font-semibold">End of Day 45</span>: Final
distribution of rewards.
</div>
</div>
</div>
</div>
</PopoverContent>
</Popover>
);
Expand Down
8 changes: 6 additions & 2 deletions apps/frontend/src/components/NetBorrowTooltip/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import BigNumber from 'bignumber.js';
import type BigNumber from 'bignumber.js';
import { Line } from '../Line';

type NetBorrowTooltipProps = {
Expand All @@ -16,7 +16,7 @@ type NetBorrowTooltipProps = {

export const NetBorrowTooltip = ({ aprData }: NetBorrowTooltipProps) => {
return (
<div className="min-w-[200px] p-2">
<div className="min-w-[200px] max-w-[300px] py-2 px-4">
<div className="flex justify-center font-semibold text-white text-lg">
Net Borrow APY
</div>
Expand All @@ -38,6 +38,10 @@ export const NetBorrowTooltip = ({ aprData }: NetBorrowTooltipProps) => {
<div>Net Borrow APY</div>
<div>{aprData?.netBorrowApr.times(100).toFixed(2)}%</div>
</div>
<div className="mt-1 text-center text-xs italic text-moon">
A negative Net Borrow APY means you are earning interest on your
borrowed funds.
</div>
</div>
);
};
2 changes: 1 addition & 1 deletion apps/frontend/src/components/NetEarnTooltip/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import BigNumber from 'bignumber.js';
import type BigNumber from 'bignumber.js';
import { Line } from '../Line';

type NetEarnTooltipProps = {
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/components/PointIcons/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import type { StaticImport } from 'next/dist/shared/lib/get-img-props';
import Image from 'next/image';
import { ReactNode } from 'react';
import type { ReactNode } from 'react';
import {
Tooltip,
TooltipContent,
Expand Down

0 comments on commit b4f73e5

Please sign in to comment.