@@ -15,8 +15,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
15
15
} ;
16
16
var React = require ( 'react' ) ;
17
17
var react_redux_1 = require ( 'react-redux' ) ;
18
- var actions_1 = require ( '../../actions' ) ;
19
18
var Snackbar_1 = require ( 'material-ui/Snackbar' ) ;
19
+ var actions_1 = require ( '../../actions' ) ;
20
20
var defaultAlert = {
21
21
message : '' ,
22
22
open : false ,
@@ -28,13 +28,13 @@ var Alert = (function (_super) {
28
28
}
29
29
Alert . prototype . render = function ( ) {
30
30
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 } ) ) ;
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 ( ) ) ; } ,
37
+ alertToggle : function ( ) { return dispatch ( actions_1 . alertToggle ( { open : false } ) ) ; }
38
38
} ;
39
39
} ) ,
40
40
__metadata ( 'design:paramtypes' , [ ] )
0 commit comments