Skip to content

Commit

Permalink
fix ProgressBar variant
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti committed Feb 13, 2023
1 parent 8b043fc commit 6dae58d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,9 @@ const CustomUserStatusService = () => {
</Box>
<Box display='flex' fontScale='c1' justifyContent='space-between' mb='x16'>
<Box>{t('Active_connections')}</Box>
<Box>
{current}/{max}
</Box>
<Box>{isEnterprise ? current : `${current}/${max}`}</Box>
</Box>
{!isEnterprise && <ProgressBar percentage={percentage} variant='success' />}
{!isEnterprise && <ProgressBar percentage={percentage} variant={percentage > 80 ? 'danger' : 'success'} />}
{presenceDisabled && (
<Margins block='x16'>
<Callout type='danger' title={t('Service_disabled')}>
Expand Down

0 comments on commit 6dae58d

Please sign in to comment.