Skip to content
Snippets Groups Projects
Commit 8e2dd4bc authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

Fix linting issues

parent 7f3e162a
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,8 @@ const App = ({ children, currentUser, journal }) => ( ...@@ -14,8 +14,8 @@ const App = ({ children, currentUser, journal }) => (
<AppBar <AppBar
brandLink="/" brandLink="/"
brandName={journal.metadata.name} brandName={journal.metadata.name}
logo={journal.metadata.logo}
loginLink="/login" loginLink="/login"
logo={journal.metadata.logo}
logoutLink="/logout" logoutLink="/logout"
userName={currentUser ? currentUser.username : null} userName={currentUser ? currentUser.username : null}
/> />
......
import React, { Component } from 'react'
import { withJournal } from 'xpub-journal'
class DummyComp extends Component {
render() {
console.log(this)
return <div>Dummy page </div>
}
}
export default withJournal(DummyComp)
...@@ -11,13 +11,10 @@ import { ...@@ -11,13 +11,10 @@ import {
import DashboardPage from 'pubsweet-component-xpub-dashboard/src/components/DashboardPage' import DashboardPage from 'pubsweet-component-xpub-dashboard/src/components/DashboardPage'
import DummyPage from './DummyPage'
const Routes = () => ( const Routes = () => (
<App> <App>
<Route component={LoginPage} exact path="/login" /> <Route component={LoginPage} exact path="/login" />
<PrivateRoute component={DashboardPage} exact path="/" /> <PrivateRoute component={DashboardPage} exact path="/" />
<PrivateRoute component={DummyPage} exact path="/dummy" />
<PrivateRoute component={LogoutPage} exact path="/logout" /> <PrivateRoute component={LogoutPage} exact path="/logout" />
</App> </App>
) )
......
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