@@ -27,14 +27,14 @@ var Alert = (function (_super) {
27
27
_super . apply ( this , arguments ) ;
28
28
}
29
29
Alert . prototype . render = function ( ) {
30
- var _a = this . props , alert = _a . alert , alertToggle = _a . alertToggle ;
30
+ var _a = this . props , alert = _a . alert , close = _a . close ;
31
31
var action = alert . action , message = alert . message , open = alert . open , duration = alert . duration ;
32
- return ( React . createElement ( Snackbar_1 . default , { className :"cr-alert " + action , open :open , message :message || '' , action :action || 'NOTE' , autoHideDuration :duration || 2000 , onRequestClose :alertToggle } ) ) ;
32
+ return ( React . createElement ( Snackbar_1 . default , { className :"cr-alert " + action , open :open , message :message || '' , action :action || 'NOTE' , autoHideDuration :duration || 2000 , onRequestClose :close } ) ) ;
33
33
} ;
34
34
Alert = __decorate ( [
35
35
react_redux_1 . connect ( null , function ( dispatch ) {
36
36
return {
37
- alertToggle :function ( ) { return dispatch ( actions_1 . alertToggle ( { open : false } ) ) ; }
37
+ close :function ( ) { return dispatch ( actions_1 . alertClose ( ) ) ; }
38
38
} ;
39
39
} ) ,
40
40
__metadata ( 'design:paramtypes' , [ ] )