From 8e2dd4bc3287df01e80100712cf9372ae6e599ad Mon Sep 17 00:00:00 2001 From: Bogdan Cochior <bogdan.cochior@thinslices.com> Date: Tue, 9 Jan 2018 15:34:58 +0200 Subject: [PATCH] Fix linting issues --- packages/component-app/src/components/App.js | 2 +- packages/xpub-faraday/app/DummyPage.js | 11 ----------- packages/xpub-faraday/app/routes.js | 3 --- 3 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 packages/xpub-faraday/app/DummyPage.js diff --git a/packages/component-app/src/components/App.js b/packages/component-app/src/components/App.js index 01af47859..386198202 100644 --- a/packages/component-app/src/components/App.js +++ b/packages/component-app/src/components/App.js @@ -14,8 +14,8 @@ const App = ({ children, currentUser, journal }) => ( <AppBar brandLink="/" brandName={journal.metadata.name} - logo={journal.metadata.logo} loginLink="/login" + logo={journal.metadata.logo} logoutLink="/logout" userName={currentUser ? currentUser.username : null} /> diff --git a/packages/xpub-faraday/app/DummyPage.js b/packages/xpub-faraday/app/DummyPage.js deleted file mode 100644 index 17dd3ef96..000000000 --- a/packages/xpub-faraday/app/DummyPage.js +++ /dev/null @@ -1,11 +0,0 @@ -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) diff --git a/packages/xpub-faraday/app/routes.js b/packages/xpub-faraday/app/routes.js index 3dafc287b..f8aa5d717 100644 --- a/packages/xpub-faraday/app/routes.js +++ b/packages/xpub-faraday/app/routes.js @@ -11,13 +11,10 @@ import { import DashboardPage from 'pubsweet-component-xpub-dashboard/src/components/DashboardPage' -import DummyPage from './DummyPage' - const Routes = () => ( <App> <Route component={LoginPage} exact path="/login" /> <PrivateRoute component={DashboardPage} exact path="/" /> - <PrivateRoute component={DummyPage} exact path="/dummy" /> <PrivateRoute component={LogoutPage} exact path="/logout" /> </App> ) -- GitLab