import React from 'react';
import Snackbar from 'material-ui/Snackbar';

const Message = ({open, content, apiStatus, onClick}) => {
    return <Snackbar
        anchorOrigin={{ vertical: 'top', horizontal:'right' }}
        open={open}
        onClose={onClick(apiStatus)}
        SnackbarContentProps={{
            'aria-describedby': 'message-id',
        }}
        message={<span id="message-id">{content}</span>}
    />
}

export default Message;
import React from 'react';
import Snackbar from 'material-ui/Snackbar';

const Message = ({open, content, apiStatus, onClick}) => {
    return <Snackbar
        anchorOrigin={{ vertical: 'top', horizontal:'right' }}
        open={open}
        onClose={onClick(apiStatus)}
        ContentProps={{
            'aria-describedby': 'message-id',
        }}
        message={<span id="message-id">{content}</span>}
    />
}

export default Message;
Fix material update breaks