Home: redirect to the journals view.

master
Tom Hacohen 7 years ago
parent d7c90ccb0a
commit 0a05095da2

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

Loading…
Cancel
Save