Skip to content

Commit

Permalink
chore: rename display
Browse files Browse the repository at this point in the history
  • Loading branch information
tadejpodrekar committed Nov 25, 2024
1 parent e15e217 commit 619bcc9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions apps/frontend/src/components/Navbar/Points.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
PopoverTrigger,
} from '@/components/ui/popover';
import { useFuelPoints } from '@/hooks/useFuelPoints';
import { useSwaylendPoints } from '@/hooks/useSwaylendPoints';
import { useSwayPoints } from '@/hooks/useSwaylendPoints';
import { cn } from '@/lib/utils';
import { useIsConnected } from '@fuels/react';
import Image from 'next/image';
Expand All @@ -27,7 +27,7 @@ export const Points = () => {
const { isConnected } = useIsConnected();

const { data: fuelPoints } = useFuelPoints();
const { data: swaylendPoints } = useSwaylendPoints();
const { data: swaylendPoints } = useSwayPoints();

// const handleCopy = async (value: string) => {
// setIsCopied(true);
Expand Down Expand Up @@ -57,7 +57,7 @@ export const Points = () => {
className="flex flex-col gap-y-2 items-center w-[258px] px-[24px]"
>
<div className="flex flex-col gap-y-2 items-center border border-white/10 w-full p-2 rounded-xl">
<div className="text-primary">Swaylend Points</div>
<div className="text-primary">SwayPoints</div>
<div
className={cn(
'text-lavender font-semibold'
Expand Down
6 changes: 3 additions & 3 deletions apps/frontend/src/components/PointIcons/PointsTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const POINTS_COLLATERAL: Point[] = [
},
{
id: '3',
name: 'Swaylend Points',
name: 'SwayPoints',
description: (
<div className="text-md">
Supply this asset as collateral to earn 1 Swaylend Point per dollar
Expand Down Expand Up @@ -99,7 +99,7 @@ export const POINTS_BORROW: Point[] = [
},
{
id: '2',
name: 'Swaylend Points',
name: 'SwayPoints',
description: (
<div className="text-md">
By Borrowing USDC on Swaylend you get a{' '}
Expand Down Expand Up @@ -146,7 +146,7 @@ export const POINTS_LEND: Point[] = [
},
{
id: '2',
name: 'Swaylend Points',
name: 'SwayPoints',
description: (
<div className="text-md">
By Lending USDC on Swaylend you get a{' '}
Expand Down
4 changes: 2 additions & 2 deletions apps/frontend/src/hooks/useSwaylendPoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ function randomDouble(min: number, max: number) {
return Math.random() * (max - min) + min;
}

export const useSwaylendPoints = () => {
export const useSwayPoints = () => {
const { account } = useAccount();

return useQuery<string>({
queryKey: ['swaylendPoints', account],
queryKey: ['swayPoints', account],
queryFn: async () => {
if (!account) return getFormattedNumber(BigNumber(0));

Expand Down

0 comments on commit 619bcc9

Please sign in to comment.