@@ -23,8 +23,10 @@ var defaultAlert = {
23
23
action :'NOTE' ,
24
24
} ;
25
25
var styles = {
26
- display :'inline-block' ,
27
- margin :'0px 10px' ,
26
+ snackbar :{
27
+ display :'inline-block' ,
28
+ margin :'0px 10px' ,
29
+ } ,
28
30
} ;
29
31
var Alert = ( function ( _super ) {
30
32
__extends ( Alert , _super ) ;
@@ -33,8 +35,8 @@ var Alert = (function (_super) {
33
35
}
34
36
Alert . prototype . render = function ( ) {
35
37
var _a = this . props , alert = _a . alert , alertClose = _a . alertClose ;
36
- var action = alert . action , message = alert . message , open = alert . open , duration = alert . duration , color = alert . color ;
37
- return ( React . createElement ( Snackbar_1 . default , { style : styles , bodyStyle : { color : color } , open :open , action :action || 'NOTE' , message :message || '' , autoHideDuration :duration || 2000 , onActionTouchTap :alertClose , onRequestClose :alertClose } ) ) ;
38
+ var action = alert . action , message = alert . message , open = alert . open , duration = alert . duration ;
39
+ return ( React . createElement ( Snackbar_1 . default , { className : 'cr-alert ' + action , style : styles . snackbar , open :open , action :action || 'NOTE' , message :message || '' , autoHideDuration :duration || 2000 , onActionTouchTap :alertClose , onRequestClose :alertClose } ) ) ;
38
40
} ;
39
41
Alert = __decorate ( [
40
42
react_redux_1 . connect ( function ( state ) { return ( {