From 167d3424224802b2293000ca0c3525338bfcabd8 Mon Sep 17 00:00:00 2001 From: nhestrompia Date: Mon, 28 Aug 2023 13:00:02 +0300 Subject: [PATCH] fix(web): stats-juror-icon --- web/src/assets/svgs/icons/user.svg | 2 +- web/src/components/StatDisplay.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/assets/svgs/icons/user.svg b/web/src/assets/svgs/icons/user.svg index e4444701e..23dc8988b 100644 --- a/web/src/assets/svgs/icons/user.svg +++ b/web/src/assets/svgs/icons/user.svg @@ -1,3 +1,3 @@ - + diff --git a/web/src/components/StatDisplay.tsx b/web/src/components/StatDisplay.tsx index 67ef929ff..43c929663 100644 --- a/web/src/components/StatDisplay.tsx +++ b/web/src/components/StatDisplay.tsx @@ -15,11 +15,10 @@ const SVGContainer = styled.div<{ iconColor: string; backgroundColor: string }>` display: flex; align-items: center; justify-content: center; - svg { fill: ${({ iconColor }) => iconColor}; - height: 32px; - width: 32px; + height: ${({ iconColor, theme }) => (iconColor === theme.success ? "24px" : "32px")}; + width: ${({ iconColor, theme }) => (iconColor === theme.success ? "24px" : "32px")}; } `; @@ -51,6 +50,7 @@ const StatDisplay: React.FC = ({ title, text, subtext, icon: Icon, blue: createPair(theme.primaryBlue, theme.mediumBlue), purple: createPair(theme.secondaryPurple, theme.mediumPurple), }; + return ( {}