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;
return (
<div>
<Switch>
<Route
path={routeResolver.getRoute('journals._id')}
exact={true}
render={() => (
<AddressBook entries={Array.from(items.values())} onItemClick={this.contactClicked} />
)
}
/>
<Route
path={routeResolver.getRoute('journals._id.items._id')}
exact={true}
render={({match}) => {
return (
<Contact contact={items.get(match.params.itemUid)} />
);
}}
/>
</Switch>
</div>
<Switch>
<Route
path={routeResolver.getRoute('journals._id')}
exact={true}
render={() => (
<AddressBook entries={Array.from(items.values())} onItemClick={this.contactClicked} />
)
}
/>
<Route
path={routeResolver.getRoute('journals._id.items._id')}
exact={true}
render={({match}) => {
return (
<Contact contact={items.get(match.params.itemUid)} />
);
}}
/>
</Switch>
);
}
}

Loading…
Cancel
Save