Skip to content

Commit

Permalink
Style trusted apps summary stats
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Dec 15, 2020
1 parent da5e63b commit 3c56b87
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,21 @@ export const TrustedAppItemsSummary = memo(() => {
}, [trustedAppsApi]);

return (
<div>
<EuiFlexGroup responsive={false}>
{SUMMARY_KEYS.map((stat) => {
return (
<SummaryStat
value={stats?.[stat] ?? 0}
color={stat === 'total' ? 'primary' : 'default'}
key={stat}
>
{SUMMARY_LABELS[stat]}
</SummaryStat>
<EuiFlexItem>
<SummaryStat
value={stats?.[stat] ?? 0}
color={stat === 'total' ? 'primary' : 'default'}
key={stat}
>
{SUMMARY_LABELS[stat]}
</SummaryStat>
</EuiFlexItem>
);
})}
</div>
</EuiFlexGroup>
);
});

Expand Down

0 comments on commit 3c56b87

Please sign in to comment.