Skip to content

Commit 67fb0e7

Browse files
committed
Restored previous label type
1 parent 7351b03 commit 67fb0e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/lib/src/badge/Badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const Label = ({ label, notificationLimit, size }) => {
8484
};
8585

8686
const DxcBadge = ({
87-
label = "",
87+
label,
8888
title,
8989
mode = "contextual",
9090
color = "grey",

packages/lib/src/badge/types.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export type NotificationProps = {
2323
/**
2424
* Text to be placed in the badge.
2525
*/
26-
label: number | "";
26+
label?: number;
2727
/**
2828
* The available badge modes.
2929
*/

0 commit comments

Comments
 (0)