Skip to content

Commit 7c997c4

Browse files
committed
Fix default color behaviour of Alert and Badge
1 parent 541f9c8 commit 7c997c4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/components/Alert.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const Alert = props => {
6060
};
6161

6262
Alert.defaultProps = {
63+
color: "success",
6364
is_open: true,
6465
duration: null
6566
};

src/components/Badge.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const Badge = props => {
4848
};
4949

5050
Badge.defaultProps = {
51+
color: "secondary",
5152
n_clicks: 0,
5253
n_clicks_timestamp: -1
5354
};

0 commit comments

Comments
 (0)