Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update tooltip small text #240

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 5 additions & 1 deletion 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 Down Expand Up @@ -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="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
Loading