From 67eb1b16f7fda72375a529922e3720fb68a9e2bb Mon Sep 17 00:00:00 2001 From: Rajarshee Chatterjee Date: Thu, 29 Aug 2024 10:43:20 +0530 Subject: [PATCH] feat: [CCM-19101]: Cleanup --- plugins/harness-ccm/src/components/CostCard/CostCard.tsx | 7 +++---- .../src/components/PerspectivesGrid/PerspectivesGrid.tsx | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/harness-ccm/src/components/CostCard/CostCard.tsx b/plugins/harness-ccm/src/components/CostCard/CostCard.tsx index f58f1cd..be1c326 100644 --- a/plugins/harness-ccm/src/components/CostCard/CostCard.tsx +++ b/plugins/harness-ccm/src/components/CostCard/CostCard.tsx @@ -35,7 +35,6 @@ const useStyles = makeStyles({ trendCtn: { display: 'flex', alignItems: 'center', - paddingRight: 4, }, }); @@ -80,13 +79,13 @@ const CostCard: React.FC = ({ {statsTrend ? (
= 0 ? '#4dc952' : '#e43326' }} + style={{ color: statsTrend >= 0 ? '#e43326' : '#4dc952' }} className={classes.trendCtn} > {statsTrend >= 0 ? ( - - ) : ( + ) : ( + )} {statsTrend < 0 ? statsTrend * -1 : statsTrend}%
diff --git a/plugins/harness-ccm/src/components/PerspectivesGrid/PerspectivesGrid.tsx b/plugins/harness-ccm/src/components/PerspectivesGrid/PerspectivesGrid.tsx index 96aab22..6a79113 100644 --- a/plugins/harness-ccm/src/components/PerspectivesGrid/PerspectivesGrid.tsx +++ b/plugins/harness-ccm/src/components/PerspectivesGrid/PerspectivesGrid.tsx @@ -32,9 +32,9 @@ const columns: TableColumn[] = [
{rowData.costTrend >= 0 ? ( - - ) : ( + ) : ( + )} {rowData.costTrend < 0 ? rowData.costTrend * -1 : rowData.costTrend}%