@@ -15,8 +15,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
1515} ;
1616var React = require ( 'react' ) ;
1717var react_redux_1 = require ( 'react-redux' ) ;
18- var actions_1 = require ( '../../actions' ) ;
1918var Snackbar_1 = require ( 'material-ui/Snackbar' ) ;
19+ var actions_1 = require ( '../../actions' ) ;
2020var defaultAlert = {
2121 message : '' ,
2222 open : false ,
@@ -28,13 +28,13 @@ var Alert = (function (_super) {
2828 }
2929 Alert . prototype . render = function ( ) {
3030 var _a = this . props , alert = _a . alert , alertToggle = _a . alertToggle ;
31- var action = alert . action , open = alert . open , message = alert . message , duration = alert . duration ;
32- return ( React . createElement ( Snackbar_1 . default , { className : "cr-alert " + action , open : open || false , message : message || '' , action : action , autoHideDuration : duration || 2000 , onActionTouchTap : alertToggle , onRequestClose : alertToggle } ) ) ;
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 } ) ) ;
3333 } ;
3434 Alert = __decorate ( [
3535 react_redux_1 . connect ( null , function ( dispatch ) {
3636 return {
37- alertToggle : function ( ) { return dispatch ( actions_1 . alertToggle ( ) ) ; } ,
37+ alertToggle : function ( ) { return dispatch ( actions_1 . alertToggle ( { open : false } ) ) ; }
3838 } ;
3939 } ) ,
4040 __metadata ( 'design:paramtypes' , [ ] )
0 commit comments