Skip to content

Commit

Permalink
fix(ui): bring back route to create article
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed Apr 23, 2020
1 parent 3151f3b commit 44e0246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ui/src/history/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Route, RouteComponentProps, Switch } from 'react-router-dom'

import ArticlePage from '../articles/ArticlePage'
import ArticlesPage from '../articles/ArticlesPage'
import AddArticlePage from '../articles/AddArticlePage'

export default ({ match }: RouteComponentProps) => (
<Switch>
Expand All @@ -12,7 +11,6 @@ export default ({ match }: RouteComponentProps) => (
path={match.path + '/'}
component={(props: RouteComponentProps) => <ArticlesPage variant="history" {...props} />}
/>
<Route exact path={match.path + '/add'} component={AddArticlePage} />
<Route
path={match.path + '/:id'}
component={(props: RouteComponentProps<{ id: string }>) => <ArticlePage title="History" {...props} />}
Expand Down
2 changes: 2 additions & 0 deletions ui/src/unread/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Route, RouteComponentProps, Switch } from 'react-router-dom'

import ArticlePage from '../articles/ArticlePage'
import ArticlesPage from '../articles/ArticlesPage'
import AddArticlePage from '../articles/AddArticlePage'

export default ({ match }: RouteComponentProps) => (
<Switch>
Expand All @@ -11,6 +12,7 @@ export default ({ match }: RouteComponentProps) => (
path={match.path + '/'}
component={(props: RouteComponentProps) => <ArticlesPage variant="unread" {...props} />}
/>
<Route exact path={match.path + '/add'} component={AddArticlePage} />
<Route
path={match.path + '/:id'}
component={(props: RouteComponentProps<{ id: string }>) => <ArticlePage title="Articles to read" {...props} />}
Expand Down

0 comments on commit 44e0246

Please sign in to comment.