diff --git a/src/App.js b/src/App.js index f857ba1..14dce37 100644 --- a/src/App.js +++ b/src/App.js @@ -47,13 +47,13 @@ class App extends Component { } componentDidMount() { - window.addEventListener('online', () => { + window.addEventListener("online", () => { this.setState({ online: true }) - }); - - window.addEventListener('offline', () => { + }) + + window.addEventListener("offline", () => { this.setState({ online: false }) - }); + }) } onChangeTheme = () => { diff --git a/src/components/Navbar/Navbar.js b/src/components/Navbar/Navbar.js index 173962d..2fb8986 100644 --- a/src/components/Navbar/Navbar.js +++ b/src/components/Navbar/Navbar.js @@ -1,4 +1,5 @@ import React from "react" +import { withRouter } from "react-router-dom" import { StyledLink as Link } from "../elements" import styled from "@emotion/styled" /** @jsx jsx */ @@ -41,6 +42,9 @@ const LogoSection = styled.div` font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 18px; + &:hover { + cursor: pointer; + } ` const LogoText = styled.span` color: ${props => props.color}; @@ -58,10 +62,10 @@ const NavIcons = styled.div` } ` -const Navbar = ({ authUser, theme, toggleTheme }) => ( +const Navbar = ({ authUser, theme, toggleTheme, history }) => (