Skip to content

Commit

Permalink
fix: Fix CountBadge display name (#2740)
Browse files Browse the repository at this point in the history
Fixes CountBadge display name

[category:Components]
  • Loading branch information
alanbsmith committed May 14, 2024
1 parent ce3cd9f commit a0579b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/react/badge/lib/CountBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const countBadgeStencil = createStencil({
* `CountBadge` provides a quantity-based summary with dynamic values.
*/
export const CountBadge = createComponent('span')({
displayName: 'NewCountBadge',
displayName: 'CountBadge',
Component: ({count = 0, limit = 1000, variant, ...elemProps}: CountBadgeProps, ref, Element) => {
const formattedCount = count < limit ? `${count}` : `${limit - 1}+`;

Expand Down

0 comments on commit a0579b1

Please sign in to comment.