Remove redundant div.

master
Tom Hacohen 7 years ago
parent 62859c411e
commit 9b96e37e44

@ -33,28 +33,26 @@ class JournalAddressBook extends React.Component {
let items = this.props.entries; let items = this.props.entries;
return ( return (
<div> <Switch>
<Switch> <Route
<Route path={routeResolver.getRoute('journals._id')}
path={routeResolver.getRoute('journals._id')} exact={true}
exact={true} render={() => (
render={() => ( <AddressBook entries={Array.from(items.values())} onItemClick={this.contactClicked} />
<AddressBook entries={Array.from(items.values())} onItemClick={this.contactClicked} /> )
) }
} />
/> <Route
<Route path={routeResolver.getRoute('journals._id.items._id')}
path={routeResolver.getRoute('journals._id.items._id')} exact={true}
exact={true} render={({match}) => {
render={({match}) => {
return (
return ( <Contact contact={items.get(match.params.itemUid)} />
<Contact contact={items.get(match.params.itemUid)} /> );
); }}
}} />
/> </Switch>
</Switch>
</div>
); );
} }
} }

Loading…
Cancel
Save