From d1078d877886de1800d4e995f568a7fc2fff2b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20der=20Winden?= Date: Tue, 15 Oct 2024 16:30:00 +0200 Subject: [PATCH] Updated Recommendation styling --- .../IncomingRecommendationList.tsx | 20 ++++++++++++------- .../recommendations/RecommendationList.tsx | 18 ++++++++--------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/apps/admin-x-settings/src/components/settings/growth/recommendations/IncomingRecommendationList.tsx b/apps/admin-x-settings/src/components/settings/growth/recommendations/IncomingRecommendationList.tsx index 33c8d7b4ea..01608b2ed8 100644 --- a/apps/admin-x-settings/src/components/settings/growth/recommendations/IncomingRecommendationList.tsx +++ b/apps/admin-x-settings/src/components/settings/growth/recommendations/IncomingRecommendationList.tsx @@ -63,15 +63,21 @@ const IncomingRecommendationItem: React.FC<{incomingRecommendation: IncomingReco - - {(signups === 0) ? (-) : (
- {numberWithCommas(signups)} -
)} + + {(signups === 0) ? ( + - + ) : ( +
+ {numberWithCommas(signups)} +
+ )}
- {(signups === 0) ? (null) : (
- {freeMembersLabel} -
)} + {(signups === 0) ? (null) : ( +
+ {freeMembersLabel} +
+ )}
{incomingRecommendation.recommending_back &&
Recommending
} diff --git a/apps/admin-x-settings/src/components/settings/growth/recommendations/RecommendationList.tsx b/apps/admin-x-settings/src/components/settings/growth/recommendations/RecommendationList.tsx index 34d9ee6380..37fa50eab1 100644 --- a/apps/admin-x-settings/src/components/settings/growth/recommendations/RecommendationList.tsx +++ b/apps/admin-x-settings/src/components/settings/growth/recommendations/RecommendationList.tsx @@ -35,7 +35,7 @@ const RecommendationItem: React.FC<{recommendation: Recommendation}> = ({recomme const clicks = count === 1 ? 'click' : 'clicks'; return ( - +
@@ -46,21 +46,21 @@ const RecommendationItem: React.FC<{recommendation: Recommendation}> = ({recomme
- + {(count === 0) ? ( - ) : ( -
- {numberWithCommas(count)} +
+ {numberWithCommas(count)}
)} - + {(count === 0) ? null : ( -
- - {showSubscribers ? newMembers : clicks} - from you +
+ + {showSubscribers ? newMembers : clicks} + from you
)}