diff --git a/src/components/Notification.js b/src/components/Notification.js deleted file mode 100644 index 0066b3cd..00000000 --- a/src/components/Notification.js +++ /dev/null @@ -1,72 +0,0 @@ -import React, { Fragment } from "react" -import Button from "@material-ui/core/Button" -import Snackbar from "@material-ui/core/Snackbar" -import IconButton from "@material-ui/core/IconButton" -import CloseIcon from "@material-ui/icons/Close" -import InfoIcon from "@material-ui/icons/Info" -import styled from "styled-components" -import { Typography } from "@material-ui/core" - -const StyledInfoIcon = styled(InfoIcon)` - vertical-align: middle; - margin-right: 0.5rem; -` - -const StyledTypography = styled(Typography)` - display: inline-block !important; - color: white !important; -` - -export default class Notification extends React.Component { - state = { - open: true, - } - - handleClick = () => { - this.setState({ open: true }) - } - - handleClose = (event, reason) => { - if (reason === "clickaway") { - return - } - - this.setState({ open: false }) - } - - handleRefresh = () => { - window.location.reload() - } - - render() { - return ( - - - - - Korjaamme tällä hetkellä teknistä vikaa / We are currently - fixing technical issues. - - - } - action={[ - - - , - ]} - /> - - ) - } -} diff --git a/src/pages/index.js b/src/pages/index.js index 25755c8e..8e5f4e30 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -14,11 +14,9 @@ import { TableRow, } from "@material-ui/core" import Container from "../components/Container" -import Notification from "../components/Notification" const IndexPage = () => ( -