routes.jsx 817 Bytes
Newer Older
Jure's avatar
Jure committed
1
import React from 'react'
2
import { Route, Switch } from 'react-router-dom'
Jure's avatar
Jure committed
3 4

// Authentication
5 6
import Login from 'pubsweet-component-login'
import Signup from 'pubsweet-component-signup'
Jure's avatar
Jure committed
7
import PasswordReset from '@pubsweet/component-password-reset-client'
Jure's avatar
Jure committed
8

Jure's avatar
Jure committed
9
import App from './components/App'
Tamlyn Rhodes's avatar
Tamlyn Rhodes committed
10

Jure's avatar
Jure committed
11 12
// This is your presentation side of things
import LandingPage from './components/LandingPage'
13

Jure's avatar
Jure committed
14 15
// And this is where your admin stuff goes
import Dashboard from './components/Dashboard'
Jure's avatar
Jure committed
16

Jure's avatar
Jure committed
17 18
export default (
  <App>
Tamlyn Rhodes's avatar
Tamlyn Rhodes committed
19
    <Switch>
Jure's avatar
Jure committed
20 21
      <Route component={LandingPage} exact path="/" />
      <Route component={Dashboard} path="/dashboard" />
Jure's avatar
Jure committed
22 23 24 25 26
      <Route component={Login} path="/login" />
      <Route component={Signup} path="/signup" />
      <Route component={PasswordReset} path="/password-reset" />
    </Switch>
  </App>
Jure's avatar
Jure committed
27
)