Start using react fragments.

master
Tom Hacohen 7 years ago
parent 808c5111b8
commit 55f595d52a

@ -1,4 +1,5 @@
import * as React from 'react'; import * as React from 'react';
const Fragment = (React as any).Fragment;
import { Tabs, Tab } from 'material-ui/Tabs'; import { Tabs, Tab } from 'material-ui/Tabs';
import { EteSyncContextType } from './EteSyncContext'; import { EteSyncContextType } from './EteSyncContext';
@ -78,7 +79,7 @@ export class JournalView extends React.Component {
} }
return ( return (
<div> <Fragment>
<Tabs> <Tabs>
<Tab <Tab
label={itemsTitle} label={itemsTitle}
@ -93,7 +94,7 @@ export class JournalView extends React.Component {
<JournalViewEntries journal={journal} entries={syncEntries} />; <JournalViewEntries journal={journal} entries={syncEntries} />;
</Tab> </Tab>
</Tabs> </Tabs>
</div> </Fragment>
); );
} }
} }

Loading…
Cancel
Save