Skip to content

Commit 6d116cb

Browse files
petrapazkatarina-cala
authored andcommitted
3499 - add badge label in IntegrationsFilterTitle.tsx
1 parent 5caed57 commit 6d116cb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

client/src/ee/pages/embedded/integrations/components/IntegrationsFilterTitle.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ const IntegrationsFilterTitle = ({
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
31+
label={typeof pageTitle === 'string' ? pageTitle : 'All Categories'}
32+
styleType="secondary-filled"
33+
weight="semibold"
34+
/>
3335
</div>
3436
);
3537
};

0 commit comments

Comments
 (0)