From 41535b37c0ec6b7df264222c1ce03e447e1124af Mon Sep 17 00:00:00 2001 From: katty barroso Date: Wed, 16 Oct 2024 07:36:23 +0200 Subject: [PATCH] Match target with design --- .../src/components/Charts/PoolPerformanceChart.tsx | 2 +- centrifuge-app/src/components/PoolCard/index.tsx | 12 ++++++++---- centrifuge-app/src/components/Tooltips.tsx | 4 ++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/centrifuge-app/src/components/Charts/PoolPerformanceChart.tsx b/centrifuge-app/src/components/Charts/PoolPerformanceChart.tsx index 507c104aef..6d6e0f1332 100644 --- a/centrifuge-app/src/components/Charts/PoolPerformanceChart.tsx +++ b/centrifuge-app/src/components/Charts/PoolPerformanceChart.tsx @@ -481,7 +481,7 @@ function CustomLegend({ {hasType(item) ? ( - + ) : ( diff --git a/centrifuge-app/src/components/PoolCard/index.tsx b/centrifuge-app/src/components/PoolCard/index.tsx index 5183fab350..a95254d792 100644 --- a/centrifuge-app/src/components/PoolCard/index.tsx +++ b/centrifuge-app/src/components/PoolCard/index.tsx @@ -7,6 +7,7 @@ import { daysBetween } from '../../utils/date' import { formatBalance, formatBalanceAbbreviated, formatPercentage } from '../../utils/formatting' import { CardHeader } from '../ListItemCardStyles' import { RouterTextLink } from '../TextLink' +import { Tooltips } from '../Tooltips' import { PoolStatus, PoolStatusKey } from './PoolStatus' export type InnerMetadata = { @@ -151,12 +152,15 @@ export function PoolCard({ if (isApr && poolId === NS3_POOL_ID) { return ( - + {text} - - Target - + ) } diff --git a/centrifuge-app/src/components/Tooltips.tsx b/centrifuge-app/src/components/Tooltips.tsx index 411ab874ec..94790e92a8 100644 --- a/centrifuge-app/src/components/Tooltips.tsx +++ b/centrifuge-app/src/components/Tooltips.tsx @@ -348,7 +348,7 @@ export type TooltipsProps = { type?: keyof typeof tooltipText label?: string | React.ReactNode props?: any - size?: 'med' | 'sm' + size?: 'med' | 'sm' | 'xs' color?: string } & Partial> @@ -359,7 +359,7 @@ export function Tooltips({ type, label: labelOverride, size = 'sm', props, color {typeof label === 'string' ? (