Skip to content

Commit 167d342

Browse files
nhestrompiajaybuidl
authored andcommitted
fix(web): stats-juror-icon
1 parent 4b5f1ea commit 167d342

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

web/src/assets/svgs/icons/user.svg

Lines changed: 1 addition & 1 deletion
Loading

web/src/components/StatDisplay.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ const SVGContainer = styled.div<{ iconColor: string; backgroundColor: string }>`
1515
display: flex;
1616
align-items: center;
1717
justify-content: center;
18-
1918
svg {
2019
fill: ${({ iconColor }) => iconColor};
21-
height: 32px;
22-
width: 32px;
20+
height: ${({ iconColor, theme }) => (iconColor === theme.success ? "24px" : "32px")};
21+
width: ${({ iconColor, theme }) => (iconColor === theme.success ? "24px" : "32px")};
2322
}
2423
`;
2524

@@ -51,6 +50,7 @@ const StatDisplay: React.FC<IStatDisplay> = ({ title, text, subtext, icon: Icon,
5150
blue: createPair(theme.primaryBlue, theme.mediumBlue),
5251
purple: createPair(theme.secondaryPurple, theme.mediumPurple),
5352
};
53+
5454
return (
5555
<Container {...props}>
5656
<SVGContainer {...{ ...COLORS[color] }}>{<Icon />}</SVGContainer>

0 commit comments

Comments
 (0)