Skip to content

Commit

Permalink
Bug enabled regions (#543)
Browse files Browse the repository at this point in the history
* Removing the old dashboard code

* one last line to clean

* commit for review and collab

* people enabled

* ensuring that 0 displays if no value is returned for a category

Co-authored-by: Spencer Stolworthy <[email protected]>
  • Loading branch information
philipdouble and sdstolworthy authored Sep 16, 2021
1 parent d17ed37 commit 2984684
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@ export function DashboardPeopleEnabledCard({
<TextContent style={{ textAlign: 'center' }}>
<Text component={TextVariants.h4}>Total Enabled</Text>
<Text component={TextVariants.h1} style={{ color: '#59ABE3' }}>
{usersEnabled?.allUsersCount}
{usersEnabled?.allUsersCount ?? 0}
</Text>
</TextContent>
</GridItem>
<GridItem span={4}>
<TextContent style={{ textAlign: 'center' }}>
<Text component={TextVariants.h4}>Red Hat</Text>
<Text component={TextVariants.h1} style={{ color: '#4db445' }}>
{usersEnabled?.rhUsersCount}
{usersEnabled?.rhUsersCount ?? 0}
</Text>
</TextContent>
</GridItem>
<GridItem span={4}>
<TextContent style={{ textAlign: 'center' }}>
<Text component={TextVariants.h4}>Others</Text>
<Text component={TextVariants.h1} style={{ color: 'a4c7a4#' }}>
{usersEnabled?.otherUsersCount}
{usersEnabled?.otherUsersCount ?? 0}
</Text>
</TextContent>
</GridItem>
Expand Down

0 comments on commit 2984684

Please sign in to comment.