Skip to content
Snippets Groups Projects
Commit 7af6eb0a authored by Alf Eaton's avatar Alf Eaton
Browse files

Export pages individually, not as default

parent 6d4134bd
No related branches found
No related tags found
No related merge requests found
export { default } from './DashboardPage'
export { default as DashboardPage } from './DashboardPage'
export { default } from './ManuscriptPage'
export { default as ManuscriptPage } from './ManuscriptPage'
export { default } from './ReviewPage'
export { default as DecisionPage } from './DecisionPage'
export { default as ReviewPage } from './ReviewPage'
export { default } from './SubmitPage'
export { default as SubmitPage } from './SubmitPage'
......@@ -5,16 +5,19 @@ import { App } from 'pubsweet-component-xpub-app/src/components'
import { AuthenticatedPage, SignupPage, LoginPage, LogoutPage } from 'pubsweet-component-xpub-authentication/src/components'
const DashboardPage = loadable(() =>
import('pubsweet-component-xpub-dashboard/src/components'))
import('pubsweet-component-xpub-dashboard/src/components/DashboardPage'))
const SubmitPage = loadable(() =>
import('pubsweet-component-xpub-submit/src/components'))
import('pubsweet-component-xpub-submit/src/components/SubmitPage'))
const ManuscriptPage = loadable(() =>
import('pubsweet-component-xpub-manuscript/src/components'))
import('pubsweet-component-xpub-manuscript/src/components/ManuscriptPage'))
const ReviewPage = loadable(() =>
import('pubsweet-component-xpub-review/src/components'))
import('pubsweet-component-xpub-review/src/components/ReviewPage'))
const DecisionPage = loadable(() =>
import('pubsweet-component-xpub-review/src/components/DecisionPage'))
export default (
<Route>
......@@ -26,6 +29,7 @@ export default (
<Route path="projects/:project/versions/:version/submit" component={SubmitPage}/>
<Route path="projects/:project/versions/:version/manuscript" component={ManuscriptPage}/>
<Route path="projects/:project/versions/:version/reviews/:review" component={ReviewPage}/>
<Route path="projects/:project/versions/:version/decisions/:decision" component={DecisionPage}/>
</Route>
<Route path="signup" component={SignupPage}/>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment