Home: redirect to the journals view.
parent
d7c90ccb0a
commit
0a05095da2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue