Remove the react fragment hack.

master
Tom Hacohen 7 years ago
parent 57d65bec0f
commit eaf7de1c47

@ -1,5 +1,4 @@
import * as React from 'react'; import * as React from 'react';
const Fragment = (React as any).Fragment;
import { List, ListItem } from 'material-ui/List'; import { List, ListItem } from 'material-ui/List';
import Divider from 'material-ui/Divider'; import Divider from 'material-ui/Divider';
import CommunicationCall from 'material-ui/svg-icons/communication/call'; import CommunicationCall from 'material-ui/svg-icons/communication/call';
@ -73,12 +72,12 @@ class ViewContact extends React.Component {
function listIfNotEmpty(items: Array<Array<JSX.Element>>) { function listIfNotEmpty(items: Array<Array<JSX.Element>>) {
if (items.length > 0) { if (items.length > 0) {
return ( return (
<Fragment> <React.Fragment>
<List> <List>
{items} {items}
</List> </List>
<Divider inset={true} /> <Divider inset={true} />
</Fragment> </React.Fragment>
); );
} else { } else {
return undefined; return undefined;

Loading…
Cancel
Save