Skip to content

Commit 307ba31

Browse files
petrapazkatarina-cala
authored andcommitted
3496 - fix: add label and weight
1 parent 199cea6 commit 307ba31

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

client/src/pages/automation/project-deployments/components/ProjectDeploymentFilterTitle.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ const ProjectDeploymentFilterTitle = ({
3232
{searchParams.get('tagId') ? 'tag' : 'project'}:
3333
</span>
3434

35-
<Badge styleType="secondary-filled" weight="semibold">
36-
<span className="text-sm">{pageTitle ?? 'All Projects'}</span>
37-
</Badge>
35+
<Badge label={`${pageTitle ?? 'All Projects'}`} styleType="secondary-filled" weight="semibold" />
3836
</div>
3937
);
4038
};

client/src/pages/automation/projects/components/ProjectsFilterTitle.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ const ProjectsFilterTitle = ({
2727
<div className="space-x-1">
2828
<span className="text-sm uppercase text-muted-foreground">{`Filter by ${searchParams.get('tagId') ? 'tag' : 'category'}:`}</span>
2929

30-
<Badge styleType="secondary-filled" weight="semibold">
31-
<span className="text-sm">{pageTitle ?? 'All Categories'}</span>
32-
</Badge>
30+
<Badge label={`${pageTitle ?? 'All Categories'}`} styleType="secondary-filled" weight="semibold" />
3331
</div>
3432
);
3533
};

client/src/pages/automation/projects/components/project-list/ProjectListItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ const ProjectListItem = ({project, projectGitConfiguration, remainingTags}: Proj
342342
<div className="flex items-center space-x-2">
343343
{project.lastPublishedDate && project.lastProjectVersion ? (
344344
<>
345-
<Badge className="flex space-x-1" styleType="success-outline">
345+
<Badge className="flex space-x-1" styleType="success-outline" weight="semibold">
346346
<span>V{project.lastProjectVersion - 1}</span>
347347

348348
<span>PUBLISHED</span>
@@ -365,7 +365,7 @@ const ProjectListItem = ({project, projectGitConfiguration, remainingTags}: Proj
365365
{/*/>*/}
366366
</>
367367
) : (
368-
<Badge className="flex space-x-1" styleType="secondary-filled">
368+
<Badge className="flex space-x-1" styleType="secondary-filled" weight="semibold">
369369
<span>V{project.lastProjectVersion}</span>
370370

371371
<span>{project.lastStatus}</span>

0 commit comments

Comments
 (0)