Skip to content

Commit 58f30a5

Browse files
authored
Badge Component: Fix/Remove Default Variant Param (#41450)
* Badge Component: Remove unused default 'info' value
1 parent 77e7ba6 commit 58f30a5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Significance: patch
2+
Type: changed
3+
Comment: Fixed minor typescript issue.
4+
5+

projects/js-packages/components/components/badge/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type BadgeProps = {
1919
*
2020
* @return {React.ReactElement} The `Badge` component.
2121
*/
22-
const Badge: React.FC< BadgeProps > = ( { children, className, variant = 'info', ...props } ) => {
22+
const Badge: React.FC< BadgeProps > = ( { children, className, variant, ...props } ) => {
2323
const classes = clsx(
2424
styles.badge,
2525
{

0 commit comments

Comments
 (0)