Mui-be-gone-3 (#5546)

* mui-be-gone

* second

* mui-be-gone-3

* updates

* ups and ups

* oops

* Revert to changes in removed files from ui-2

* Revert to stateless component
This commit is contained in:
Craig O'Connor
2017-05-04 05:03:55 -04:00
committed by Jaco Greeff
parent f34a0346bc
commit c1f07c3329
7 changed files with 194 additions and 62 deletions

View File

@@ -18,24 +18,16 @@ import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Snackbar as SnackbarMUI } from 'material-ui';
import { Snackbar as SnackbarUI } from '~/ui';
import { closeSnackbar } from '~/redux/providers/snackbarActions';
const BODY_STYLE = {
backgroundColor: 'rgba(0, 0, 0, 0.87)',
borderStyle: 'solid',
borderColor: '#424242',
borderWidth: '1px 1px 0 1px'
};
function Snackbar ({ closeSnackbar, cooldown, message, open }) {
function Snackbar ({ closeSnackbar, cooldown = 3500, message, open = false }) {
return (
<SnackbarMUI
autoHideDuration={ cooldown }
bodyStyle={ BODY_STYLE }
message={ message }
<SnackbarUI
open={ open }
message={ message }
autoHideDuration={ cooldown }
onRequestClose={ closeSnackbar }
/>
);