Add JSX wrapper.

This commit is contained in:
Richard Lewis 2017-07-27 17:47:04 +01:00
parent 997c7493eb
commit 27923e300c

View File

@ -164,7 +164,7 @@ module.exports = React.createClass({
render: function() { render: function() {
const apps = this.state.apps.map( const apps = this.state.apps.map(
(app, index, arr) => { (app, index, arr) => {
return <AppTile return (<AppTile
key={app.id} key={app.id}
id={app.id} id={app.id}
url={app.url} url={app.url}
@ -173,7 +173,7 @@ module.exports = React.createClass({
fullWidth={arr.length<2 ? true : false} fullWidth={arr.length<2 ? true : false}
room={this.props.room} room={this.props.room}
userId={this.props.userId} userId={this.props.userId}
/>; />);
}); });
const addWidget = this.state.apps && this.state.apps.length < 2 && const addWidget = this.state.apps && this.state.apps.length < 2 &&