Skip to content

Commit bdac802

Browse files
committed
remove default buttonProps.text value from the Notice component
1 parent c6f671d commit bdac802

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/components/Notice/Notice.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ Notice.propTypes = {
5050
}
5151

5252
Notice.defaultProps = {
53-
buttonProps: {
54-
text: 'Click to return to the previous page.'
55-
},
53+
buttonProps: {},
5654
dismissible: true,
5755
withBackButton: false,
5856
}

src/components/Notice/Notice.stories.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ Default.args = {
1515
body: ['A standard alert.'],
1616
variant: 'warning'
1717
},
18-
buttonProps: {
19-
text: 'Click to return to the previous page.'
20-
},
18+
buttonProps: {},
2119
dismissible: true,
2220
withBackButton: false,
2321
}

0 commit comments

Comments
 (0)