File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const CAlert = props => {
11
11
let {
12
12
children,
13
13
className,
14
+ innerRef,
14
15
//
15
16
onShowChange,
16
17
closeButton,
@@ -64,6 +65,7 @@ const CAlert = props => {
64
65
in = { Boolean ( isOpen ) }
65
66
role = "alert"
66
67
{ ...attrs }
68
+ innerRef = { innerRef }
67
69
>
68
70
{ children }
69
71
{ closeButton && < CButtonClose onClick = { ( ) => setIsOpen ( false ) } /> }
@@ -74,18 +76,17 @@ const CAlert = props => {
74
76
CAlert . propTypes = {
75
77
children : PropTypes . node ,
76
78
className : PropTypes . string ,
77
- //
78
79
innerRef : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . func , PropTypes . string ] ) ,
79
80
onShowChange : PropTypes . func ,
80
81
closeButton : PropTypes . bool ,
81
82
color : PropTypes . string ,
82
83
fade : PropTypes . bool ,
83
84
show : PropTypes . oneOfType ( [ PropTypes . bool , PropTypes . number ] ) ,
84
- } ;
85
+ }
85
86
86
87
CAlert . defaultProps = {
87
88
show : true ,
88
89
fade : true
89
- } ;
90
+ }
90
91
91
92
export default CAlert
You can’t perform that action at this time.
0 commit comments