From a54584e04bb58048a44cb0aa4951f9cefe5c26e4 Mon Sep 17 00:00:00 2001 From: Kyle Gill Date: Mon, 29 Apr 2019 15:07:25 -0600 Subject: [PATCH] chore: clean up home screen --- src/App.js | 10 +++++----- src/components/Navbar/Navbar.js | 11 ++++++++--- src/components/SignOut/SignOut.js | 7 ++++++- src/components/elements/elements.js | 12 ++++++------ src/components/screens/Start/Start.js | 25 ++++++++++--------------- src/components/screens/User/User.js | 8 +++++++- 6 files changed, 42 insertions(+), 31 deletions(-) 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 }) => (