Skip to content

Commit 7ba0ee0

Browse files
committed
🎨 style(inviteUsers): add bold and color to user count labels in campaign, project and workspace settings
1 parent 25cb4a4 commit 7ba0ee0

File tree

3 files changed

+57
-11
lines changed

3 files changed

+57
-11
lines changed

‎src/common/components/inviteUsers/campaignSettings.tsx‎

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Notification,
99
Button,
1010
getColor,
11+
MD,
1112
} from '@appquality/unguess-design-system';
1213
import { useAppSelector } from 'src/app/hooks';
1314
import { Trans, useTranslation } from 'react-i18next';
@@ -240,8 +241,15 @@ export const CampaignSettings = () => {
240241
marginRight: appTheme.space.xs,
241242
}}
242243
/>
243-
{t('__PERMISSION_SETTINGS_CAMPAIGN_USERS')} ({campaignCount}
244-
)
244+
<MD isBold>
245+
{t('__PERMISSION_SETTINGS_CAMPAIGN_USERS')}{' '}
246+
<Span
247+
isBold={false}
248+
style={{ color: appTheme.palette.grey[600] }}
249+
>
250+
({campaignCount})
251+
</Span>
252+
</MD>
245253
</UsersLabel>
246254
<UsersContainer>
247255
{campaignUsers?.items.map((user) => (
@@ -274,8 +282,15 @@ export const CampaignSettings = () => {
274282
marginRight: appTheme.space.xs,
275283
}}
276284
/>
277-
{t('__PERMISSION_SETTINGS_PROJECT_USERS')} (
278-
{projectCount})
285+
<MD isBold>
286+
{t('__PERMISSION_SETTINGS_PROJECT_USERS')}{' '}
287+
<Span
288+
isBold={false}
289+
style={{ color: appTheme.palette.grey[600] }}
290+
>
291+
({projectCount})
292+
</Span>
293+
</MD>
279294
</UsersLabel>
280295
</StyledAccordion.Label>
281296
</StyledAccordion.Header>
@@ -305,8 +320,15 @@ export const CampaignSettings = () => {
305320
marginRight: appTheme.space.xs,
306321
}}
307322
/>
308-
{t('__PERMISSION_SETTINGS_WORKSPACE_USERS')} (
309-
{workspaceCount})
323+
<MD isBold>
324+
{t('__PERMISSION_SETTINGS_WORKSPACE_USERS')}{' '}
325+
<Span
326+
isBold={false}
327+
style={{ color: appTheme.palette.grey[600] }}
328+
>
329+
({workspaceCount})
330+
</Span>
331+
</MD>
310332
</UsersLabel>
311333
</StyledAccordion.Label>
312334
</StyledAccordion.Header>

‎src/common/components/inviteUsers/projectSettings.tsx‎

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Notification,
99
Button,
1010
getColor,
11+
MD,
1112
} from '@appquality/unguess-design-system';
1213
import { useAppSelector } from 'src/app/hooks';
1314
import { Trans, useTranslation } from 'react-i18next';
@@ -214,7 +215,15 @@ export const ProjectSettings = () => {
214215
marginRight: appTheme.space.xs,
215216
}}
216217
/>
217-
{t('__PERMISSION_SETTINGS_PROJECT_USERS')} ({projectCount})
218+
<MD isBold>
219+
{t('__PERMISSION_SETTINGS_PROJECT_USERS')}{' '}
220+
<Span
221+
isBold={false}
222+
style={{ color: appTheme.palette.grey[600] }}
223+
>
224+
({projectCount})
225+
</Span>
226+
</MD>
218227
</UsersLabel>
219228
<UsersContainer>
220229
{projectUsers?.items.map((user) => (
@@ -249,8 +258,15 @@ export const ProjectSettings = () => {
249258
marginRight: appTheme.space.xs,
250259
}}
251260
/>
252-
{t('__PERMISSION_SETTINGS_WORKSPACE_USERS')} (
253-
{workspaceCount})
261+
<MD isBold>
262+
{t('__PERMISSION_SETTINGS_WORKSPACE_USERS')}{' '}
263+
<Span
264+
isBold={false}
265+
style={{ color: appTheme.palette.grey[600] }}
266+
>
267+
({workspaceCount})
268+
</Span>
269+
</MD>
254270
</UsersLabel>
255271
</StyledAccordion.Label>
256272
</StyledAccordion.Header>

‎src/common/components/inviteUsers/workspaceSettings.tsx‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Notification,
99
Button,
1010
getColor,
11+
MD,
1112
} from '@appquality/unguess-design-system';
1213
import { useAppSelector } from 'src/app/hooks';
1314
import { Trans, useTranslation } from 'react-i18next';
@@ -192,8 +193,15 @@ export const WorkspaceSettings = () => {
192193
marginRight: appTheme.space.xs,
193194
}}
194195
/>
195-
{t('__PERMISSION_SETTINGS_WORKSPACE_USERS')} (
196-
{workspaceCount})
196+
<MD isBold>
197+
{t('__PERMISSION_SETTINGS_WORKSPACE_USERS')}{' '}
198+
<Span
199+
isBold={false}
200+
style={{ color: appTheme.palette.grey[600] }}
201+
>
202+
({workspaceCount})
203+
</Span>
204+
</MD>
197205
</UsersLabel>
198206
<UsersContainer>
199207
{workspaceUsers?.items.map((user) => (

0 commit comments

Comments
 (0)