chore: move screens into routes folder

This commit is contained in:
Kyle Gill
2019-05-18 16:14:38 -06:00
parent f8f6eda47b
commit 35e11d6134
20 changed files with 22 additions and 36 deletions

View File

@@ -8,12 +8,12 @@ import { SIZES } from "./styles/constants"
import theme from "./styles/theme"
import Navbar from "./components/Navbar"
import Day from "./components/screens/Day"
import Month from "./components/screens/Month"
import Year from "./components/screens/Year"
import User from "./components/screens/User"
import Search from "./components/screens/Search"
import Welcome from "./components/screens/Welcome"
import Day from "routes/Day"
import Month from "routes/Month"
import Year from "routes/Year"
import User from "routes/User"
import Search from "routes/Search"
import Welcome from "routes/Welcome"
import PrivateRoute from "./components/PrivateRoute"
import { OnlineContext } from "./components/context/online"

View File

@@ -3,7 +3,7 @@ import { Helmet } from "react-helmet"
import { Global, css } from "@emotion/core"
import styled from "@emotion/styled"
import { SimpleNavbar } from "../Navbar"
import { SimpleNavbar } from "components/Navbar"
import { withTheme } from "emotion-theming"
const Layout = ({ children, theme }) => (

View File

@@ -2,9 +2,9 @@ import React from "react"
import { compose } from "recompose"
import { withTheme } from "emotion-theming"
import { Button } from "../elements"
import { Button } from "components/elements"
import { withFirebase } from "../firebase"
import { withFirebase } from "components/firebase"
const SignOutButton = ({ firebase, theme }) => (
<Button

View File

@@ -1,2 +0,0 @@
import Day from "./Day"
export default Day

View File

@@ -1,2 +0,0 @@
import Month from "./Month"
export default Month

View File

@@ -1,2 +0,0 @@
import Search from "./Search"
export default Search

View File

@@ -1,2 +0,0 @@
import Start from "./Start"
export default Start

View File

@@ -1,2 +0,0 @@
import User from "./User"
export default User

View File

@@ -1,2 +0,0 @@
import Welcome from "./Welcome"
export default Welcome

View File

@@ -1,2 +0,0 @@
import Year from "./Year"
export default Year

View File

@@ -1,7 +1,7 @@
import React from "react"
import AuthUserContext from "./context"
import { withFirebase } from "../firebase"
import { withFirebase } from "components/firebase"
const withAuthentication = Component => {
class WithAuthentication extends React.Component {

View File

@@ -1,6 +1,6 @@
import React from "react"
import { SimpleNavbar } from "components/Navbar"
import Index from "components/screens/Start/index"
import Index from "routes/Start"
import Layout from "components/Layout"
import Container from "components/container"

View File

@@ -1,5 +1,4 @@
import React, { Component } from "react"
import { AppLink as Link } from "components/elements"
import styled from "@emotion/styled"
import {
isAfter,
@@ -12,7 +11,8 @@ import {
startOfMonth,
} from "date-fns"
import Seek from "../../Seek"
import { AppLink as Link } from "components/elements"
import Seek from "components/Seek"
const YearCardGrid = styled.div`
display: grid;

View File

@@ -7,8 +7,8 @@ import { withTheme } from "emotion-theming"
import { SIZES } from "styles/constants"
import { Button, P } from "components/elements"
import { todayUrl } from "utils/date"
import Icon from "component/Icon"
import Logo from "component/Logo"
import Icon from "components/Icon"
import Logo from "components/Logo"
const StartGrid = styled.div`
margin-top: 30px;

View File

@@ -5,12 +5,11 @@ import { compose } from "recompose"
import { format } from "date-fns"
import { BeatLoader } from "react-spinners"
import { SIZES } from "styles/constants"
import { withFirebase } from "components/firebase"
import { withAuthentication } from "components/session"
import { SIZES } from "styles/constants"
import SignOut from "../../SignOut"
import { Button } from "../../elements"
import SignOut from "components/SignOut"
import { Button } from "components/elements"
const ProfileGrid = styled.div`
display: grid;

View File

@@ -1,11 +1,11 @@
import React, { Component } from "react"
import { AppLink as Link } from "components/elements"
import styled from "@emotion/styled"
import { addYears, subYears, format, isThisYear, getMonth } from "date-fns"
import styled from "@emotion/styled"
import { withTheme } from "emotion-theming"
import { AppLink as Link } from "components/elements"
import Seek from "components/Seek"
import { months } from "utils/date"
import Seek from "../../Seek"
const MonthCardGrid = styled.div`
display: grid;