From 496ce1b46e8a97a08ade9ab30316259dc2e785b5 Mon Sep 17 00:00:00 2001 From: Hayden Shively <17186559+haydenshively@users.noreply.github.com> Date: Sun, 25 Feb 2024 16:42:08 -0600 Subject: [PATCH] Add colored underlines to indicate collateral or borrows --- earn/src/components/advanced/BorrowMetrics.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/earn/src/components/advanced/BorrowMetrics.tsx b/earn/src/components/advanced/BorrowMetrics.tsx index bfa26c89..312bb754 100644 --- a/earn/src/components/advanced/BorrowMetrics.tsx +++ b/earn/src/components/advanced/BorrowMetrics.tsx @@ -104,14 +104,16 @@ function getHealthColor(health: number) { } } -function MetricCard(props: { label: string; value: string }) { - const { label, value } = props; +function MetricCard(props: { label: string; value: string; valueClassName?: string }) { + const { label, value, valueClassName } = props; return ( {label} - {value} + + {value} + ); } @@ -252,18 +254,22 @@ export function BorrowMetrics(props: BorrowMetricsProps) {