Home: redirect to the journals view.

master
Tom Hacohen 2017-12-04 14:13:41 +00:00
parent d7c90ccb0a
commit 0a05095da2
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import { Switch, Route } from 'react-router';
import { Switch, Route, Redirect } from 'react-router';
import { JournalList } from './JournalList';
import { JournalView } from './JournalView';
@ -121,6 +121,11 @@ export class EteSyncContext extends React.Component {
<Route
path={routeResolver.getRoute('home')}
exact={true}
render={() => <Redirect to={routeResolver.getRoute('journals')} />}
/>
<Route
path={routeResolver.getRoute('journals')}
exact={true}
render={() => <JournalList etesync={context} />}
/>
<Route