Skip to content

Commit

Permalink
feat: Add SinginModal
Browse files Browse the repository at this point in the history
see: #8
  • Loading branch information
sujinleeme committed Jul 10, 2018
1 parent 958204f commit d80ee14
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,27 @@ import importedComponent from "react-imported-component"
import Header from "./components/Header"
import Home from "./components/Home"
import Loading from "./components/Loading"

import SinginModal from "./modal"

const Login = importedComponent(() =>
import(/* webpackChunkName:'Login' */ "./components/Login"), {
LoadingComponent: Loading
})

const AsyncNoMatch = importedComponent(() =>
import(/* webpackChunkName:'NoMatch' */ "./components/NoMatch"), {
LoadingComponent: Loading
})

const Signup = importedComponent(() => import(/* webpackChunkName:'Login' */ "./signup"), {
LoadingComponent: Loading
})

const Login = importedComponent(
() => import(/* webpackChunkName:'Login' */ "./components/Login"),
{
LoadingComponent: Loading
}
)
const AsyncNoMatch = importedComponent(
() => import(/* webpackChunkName:'NoMatch' */ "./components/NoMatch"),
{
LoadingComponent: Loading
}
)

const Signup = importedComponent(
() => import(/* webpackChunkName:'Login' */ "./signup"),
{
LoadingComponent: Loading
}
)
const App = () => {
return (
<div>
<Header/>
<SinginModal />
<SinginModal/>
<Switch>
<Route exact path="/" component={ Home }/>
<Route exact path="/signup" component={ Signup }/>
Expand All @@ -45,5 +36,4 @@ const App = () => {
)
}


export default App

0 comments on commit d80ee14

Please sign in to comment.