@@ -27,14 +27,14 @@ var Alert = (function (_super) {
2727_super . apply ( this , arguments ) ;
2828}
2929Alert . 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 ;
3131var 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 } ) ) ;
3333} ;
3434Alert = __decorate ( [
3535react_redux_1 . connect ( null , function ( dispatch ) {
3636return {
37- alertToggle :function ( ) { return dispatch ( actions_1 . alertToggle ( { open : false } ) ) ; }
37+ close :function ( ) { return dispatch ( actions_1 . alertClose ( ) ) ; }
3838} ;
3939} ) ,
4040__metadata ( 'design:paramtypes' , [ ] )