diff --git a/app/src/components/ConnectionSetup/Connection.tsx b/app/src/components/ConnectionSetup/Connection.tsx index 802a5b8..fd3db40 100644 --- a/app/src/components/ConnectionSetup/Connection.tsx +++ b/app/src/components/ConnectionSetup/Connection.tsx @@ -17,7 +17,6 @@ import { DataSourceState, MqttOptions } from '../../../../backend/src/DataSource import { StyleRulesCallback, Theme, withStyles } from '@material-ui/core/styles' import { addMqttConnectionEvent, makeConnectionStateEvent, removeConnection, rendererEvents } from '../../../../events' -import Notification from './Notification' import sha1 = require('sha1') interface Props { diff --git a/app/src/components/ConnectionSetup/Notification.tsx b/app/src/components/ConnectionSetup/Notification.tsx deleted file mode 100644 index d3aed67..0000000 --- a/app/src/components/ConnectionSetup/Notification.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import * as React from 'react' -import { Snackbar, SnackbarContent } from '@material-ui/core' -import { red, green } from '@material-ui/core/colors' -import { withStyles, Theme } from '@material-ui/core/styles' - -enum MessageType { - success = 'success', - error = 'error', -} - -interface Props { - message: string - type: MessageType - onClose: () => void - classes: any -} - -interface State { - snackBarOpen: boolean -} - -class Notification extends React.Component { - constructor(props: Props) { - super(props) - this.state = { snackBarOpen: false } - } - - public static styles = (theme: Theme) => ({ - success: { - backgroundColor: green[600], - color: theme.typography.button.color, - }, - error: { - backgroundColor: red[600], - color: theme.typography.button.color, - }, - }) - - public render() { - return { this.setState({ snackBarOpen: false }) }} - > - - - } -} - -export default withStyles(Notification.styles)(Notification)