From 9eb1b779f585271737151b7e362be96b01fd3ff5 Mon Sep 17 00:00:00 2001 From: yivlad Date: Mon, 9 Dec 2024 14:16:56 +0100 Subject: [PATCH] Remove font weights --- .../farm-details/components/chart/rewards/RewardsChart.tsx | 2 +- .../features/farm-details/components/chart/tvl/TvlChart.tsx | 2 +- .../market-details/views/components/TokenLinksDropdown.tsx | 2 +- .../components/savings-charts/components/MyEarningsChart.tsx | 3 +-- .../components/savings-rate-chart/SavingsRateChart.tsx | 3 +-- packages/app/src/ui/atoms/sparkles/Sparkles.tsx | 2 +- packages/app/src/ui/atoms/table/Table.stories.tsx | 2 +- packages/app/src/ui/charts/ChartTooltipContent.tsx | 4 ++-- 8 files changed, 9 insertions(+), 11 deletions(-) diff --git a/packages/app/src/features/farm-details/components/chart/rewards/RewardsChart.tsx b/packages/app/src/features/farm-details/components/chart/rewards/RewardsChart.tsx index d50ea786a..0f2e9d6f1 100644 --- a/packages/app/src/features/farm-details/components/chart/rewards/RewardsChart.tsx +++ b/packages/app/src/features/farm-details/components/chart/rewards/RewardsChart.tsx @@ -199,7 +199,7 @@ function TooltipContent({ data }: { data: ChartDataPoint }) { {formatTooltipDate(data.date)} - APY: {formatPercentage(data.apr, { minimumFractionDigits: 0 })} + APY: {formatPercentage(data.apr, { minimumFractionDigits: 0 })} ) diff --git a/packages/app/src/features/farm-details/components/chart/tvl/TvlChart.tsx b/packages/app/src/features/farm-details/components/chart/tvl/TvlChart.tsx index f9ba1566e..838364324 100644 --- a/packages/app/src/features/farm-details/components/chart/tvl/TvlChart.tsx +++ b/packages/app/src/features/farm-details/components/chart/tvl/TvlChart.tsx @@ -203,7 +203,7 @@ function TooltipContent({ data }: { data: ChartDataPoint }) { {formatTooltipDate(data.date)} - TVL: {USD_MOCK_TOKEN.formatUSD(data.totalStaked)} + TVL: {USD_MOCK_TOKEN.formatUSD(data.totalStaked)} ) diff --git a/packages/app/src/features/market-details/views/components/TokenLinksDropdown.tsx b/packages/app/src/features/market-details/views/components/TokenLinksDropdown.tsx index 192db5dc3..c198cf904 100644 --- a/packages/app/src/features/market-details/views/components/TokenLinksDropdown.tsx +++ b/packages/app/src/features/market-details/views/components/TokenLinksDropdown.tsx @@ -31,7 +31,7 @@ export function TokenLinksDropdown({ token, aToken, variableDebtTokenAddress, ch ] return ( - Token Contracts + Token Contracts {tokenContractsLinks.map((contractLink) => ( diff --git a/packages/app/src/features/savings/components/savings-charts/components/MyEarningsChart.tsx b/packages/app/src/features/savings/components/savings-charts/components/MyEarningsChart.tsx index 2ccf3846c..2ac60aed4 100644 --- a/packages/app/src/features/savings/components/savings-charts/components/MyEarningsChart.tsx +++ b/packages/app/src/features/savings/components/savings-charts/components/MyEarningsChart.tsx @@ -232,8 +232,7 @@ function TooltipContent({ data }: { data: ChartDataPoint }) { {formatTooltipDate(data.date)} - Savings{isPrediction && ' Prediction'}:{' '} - {USD_MOCK_TOKEN.formatUSD(data.balance)} + Savings{isPrediction && ' Prediction'}: {USD_MOCK_TOKEN.formatUSD(data.balance)} ) diff --git a/packages/app/src/features/savings/components/savings-charts/components/savings-rate-chart/SavingsRateChart.tsx b/packages/app/src/features/savings/components/savings-charts/components/savings-rate-chart/SavingsRateChart.tsx index 6879d8634..913ffc89f 100644 --- a/packages/app/src/features/savings/components/savings-charts/components/savings-rate-chart/SavingsRateChart.tsx +++ b/packages/app/src/features/savings/components/savings-charts/components/savings-rate-chart/SavingsRateChart.tsx @@ -212,8 +212,7 @@ function TooltipContent({ data, tooltipLabel }: { data: ChartDataPoint; colors: {formatTooltipDate(data.date)} - {tooltipLabel}:{' '} - {formatPercentage(data.rate, { minimumFractionDigits: 0 })} + {tooltipLabel}: {formatPercentage(data.rate, { minimumFractionDigits: 0 })} ) diff --git a/packages/app/src/ui/atoms/sparkles/Sparkles.tsx b/packages/app/src/ui/atoms/sparkles/Sparkles.tsx index 035a8d5e4..f3b76f935 100644 --- a/packages/app/src/ui/atoms/sparkles/Sparkles.tsx +++ b/packages/app/src/ui/atoms/sparkles/Sparkles.tsx @@ -39,7 +39,7 @@ export function Sparkles({ color = DEFAULT_COLOR, children, sizeRange = [10, 18] {sparkles.map((sparkle) => ( ))} - {children} + {children} ) } diff --git a/packages/app/src/ui/atoms/table/Table.stories.tsx b/packages/app/src/ui/atoms/table/Table.stories.tsx index f0c759754..2df784fe4 100644 --- a/packages/app/src/ui/atoms/table/Table.stories.tsx +++ b/packages/app/src/ui/atoms/table/Table.stories.tsx @@ -62,7 +62,7 @@ function TableDemo() { {invoices.map((invoice) => ( - {invoice.invoice} + {invoice.invoice} {invoice.paymentStatus} {invoice.paymentMethod} {invoice.totalAmount} diff --git a/packages/app/src/ui/charts/ChartTooltipContent.tsx b/packages/app/src/ui/charts/ChartTooltipContent.tsx index 50a5590be..d3ed88772 100644 --- a/packages/app/src/ui/charts/ChartTooltipContent.tsx +++ b/packages/app/src/ui/charts/ChartTooltipContent.tsx @@ -3,7 +3,7 @@ import { ReactNode } from 'react' export function ChartTooltipContent({ children: [date, value] }: { children: ReactNode[] }) { return ( -
+
{date} {value}
@@ -16,7 +16,7 @@ function TooltipDate({ children }: { children: ReactNode }) { function TooltipValue({ children, dotColor }: { children: ReactNode; dotColor: string }) { return ( -
+
{children}