Skip to content

Commit 3dbc163

Browse files
authored
feat: allow string values for badge and count props (#1280)
1 parent ed184a6 commit 3dbc163

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/molecules/Badge/Badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Container } from 'src/molecules/Badge/Badge.styles';
77
export type Variants = 'default' | 'light' | 'danger' | 'empty';
88

99
export interface BadgeProps {
10-
value: number;
10+
value: number | string;
1111
variant?: Variants;
1212
}
1313

src/molecules/Tabs/Tabs.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Variants } from 'src/atoms/types/variants';
55
export interface Tab<T> {
66
value: T;
77
label: string;
8-
count?: number;
8+
count?: number | string;
99
leadingIcon?: IconData;
1010
trailingIcon?: IconData;
1111
variant?: Extract<Variants, 'warning' | 'error'>;

src/providers/TableOfContentsProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { getValues } from 'src/providers/TableOfContentsProvider.utils';
1818
export interface TableOfContentsItemType {
1919
label: string;
2020
value: string;
21-
count?: number;
21+
count?: number | string;
2222
disabled?: boolean;
2323
children?: TableOfContentsItemType[];
2424
}

0 commit comments

Comments
 (0)