Move the header back outside of the internal components.

master
Tom Hacohen 7 years ago
parent 132f63e2a6
commit af921e1b28

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

@ -55,9 +55,6 @@ export class JournalList extends React.Component {
return ( return (
<div> <div>
<div className="App-header">
<h2>Welcome to React</h2>
</div>
<ul> <ul>
{journals} {journals}
</ul> </ul>

@ -49,9 +49,6 @@ export class JournalView extends React.Component {
return ( return (
<div> <div>
<div className="App-header">
<h2>Welcome to React</h2>
</div>
<ul> <ul>
{journals} {journals}
</ul> </ul>

Loading…
Cancel
Save