|
|
@ -44,18 +44,22 @@ export class EteSyncContext extends React.Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Switch>
|
|
|
|
<div>
|
|
|
|
<Route
|
|
|
|
<div className="App-header">
|
|
|
|
path={routeResolver.getRoute('home')}
|
|
|
|
<h2>Welcome to React</h2>
|
|
|
|
exact={true}
|
|
|
|
</div>
|
|
|
|
render={() => <JournalList etesync={this.state as EteSyncContextType} />}
|
|
|
|
<Switch>
|
|
|
|
/>
|
|
|
|
<Route
|
|
|
|
<Route
|
|
|
|
path={routeResolver.getRoute('home')}
|
|
|
|
path={routeResolver.getRoute('journals._id')}
|
|
|
|
exact={true}
|
|
|
|
exact={true}
|
|
|
|
render={() => <JournalList etesync={this.state as EteSyncContextType} />}
|
|
|
|
render={({match}) => <JournalView match={match} etesync={this.state as EteSyncContextType} />}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<Route
|
|
|
|
</Switch>
|
|
|
|
path={routeResolver.getRoute('journals._id')}
|
|
|
|
|
|
|
|
render={({match}) => <JournalView match={match} etesync={this.state as EteSyncContextType} />}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</Switch>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|