diff --git a/src/components/views/rooms/Autocomplete.js b/src/components/views/rooms/Autocomplete.js index ee6cc66d2d..757204f0c8 100644 --- a/src/components/views/rooms/Autocomplete.js +++ b/src/components/views/rooms/Autocomplete.js @@ -114,7 +114,7 @@ export default class Autocomplete extends React.Component { processQuery(query, selection) { return this.autocompleter.getCompletions( - query, selection, this.state.forceComplete + query, selection, this.state.forceComplete, ).then((completions) => { // Only ever process the completions for the most recent query being processed if (query !== this.queryRequested) { diff --git a/src/components/views/rooms/MemberInfo.js b/src/components/views/rooms/MemberInfo.js index ff5f41c7d1..037957c868 100644 --- a/src/components/views/rooms/MemberInfo.js +++ b/src/components/views/rooms/MemberInfo.js @@ -777,7 +777,7 @@ module.exports = withMatrixClient(React.createClass({ const myMembership = room.getMyMembership(); // not a DM room if we have are not joined if (myMembership !== 'join') continue; - + const them = this.props.member; // not a DM room if they are not joined if (!them.membership || them.membership !== 'join') continue; diff --git a/src/components/views/rooms/RoomDropTarget.js b/src/components/views/rooms/RoomDropTarget.js index 3cb10630fa..13050cf860 100644 --- a/src/components/views/rooms/RoomDropTarget.js +++ b/src/components/views/rooms/RoomDropTarget.js @@ -16,7 +16,7 @@ limitations under the License. 'use strict'; -var React = require('react'); +const React = require('react'); module.exports = React.createClass({ displayName: 'RoomDropTarget', @@ -31,5 +31,5 @@ module.exports = React.createClass({ ); - } + }, }); diff --git a/src/components/views/rooms/SearchBar.js b/src/components/views/rooms/SearchBar.js index a196c5b78d..05fc661c1c 100644 --- a/src/components/views/rooms/SearchBar.js +++ b/src/components/views/rooms/SearchBar.js @@ -16,11 +16,11 @@ limitations under the License. 'use strict'; -var React = require('react'); -var MatrixClientPeg = require('../../../MatrixClientPeg'); -var sdk = require('../../../index'); -var classNames = require('classnames'); -var AccessibleButton = require('../../../components/views/elements/AccessibleButton'); +const React = require('react'); +const MatrixClientPeg = require('../../../MatrixClientPeg'); +const sdk = require('../../../index'); +const classNames = require('classnames'); +const AccessibleButton = require('../../../components/views/elements/AccessibleButton'); import { _t } from '../../../languageHandler'; module.exports = React.createClass({ @@ -28,7 +28,7 @@ module.exports = React.createClass({ getInitialState: function() { return ({ - scope: 'Room' + scope: 'Room', }); }, @@ -54,18 +54,18 @@ module.exports = React.createClass({ }, render: function() { - var searchButtonClasses = classNames({ mx_SearchBar_searchButton : true, mx_SearchBar_searching: this.props.searchInProgress }); - var thisRoomClasses = classNames({ mx_SearchBar_button : true, mx_SearchBar_unselected : this.state.scope !== 'Room' }); - var allRoomsClasses = classNames({ mx_SearchBar_button : true, mx_SearchBar_unselected : this.state.scope !== 'All' }); + const searchButtonClasses = classNames({ mx_SearchBar_searchButton: true, mx_SearchBar_searching: this.props.searchInProgress }); + const thisRoomClasses = classNames({ mx_SearchBar_button: true, mx_SearchBar_unselected: this.state.scope !== 'Room' }); + const allRoomsClasses = classNames({ mx_SearchBar_button: true, mx_SearchBar_unselected: this.state.scope !== 'All' }); return ( -
- - {_t("Search")}/ +
+ + {_t("Search")} {_t("This Room")} {_t("All Rooms")}
); - } + }, }); diff --git a/src/components/views/settings/IntegrationsManager.js b/src/components/views/settings/IntegrationsManager.js index 29ae4af93d..a517771f1d 100644 --- a/src/components/views/settings/IntegrationsManager.js +++ b/src/components/views/settings/IntegrationsManager.js @@ -16,10 +16,10 @@ limitations under the License. 'use strict'; -var React = require('react'); -var sdk = require('../../../index'); -var MatrixClientPeg = require('../../../MatrixClientPeg'); -var dis = require('../../../dispatcher'); +const React = require('react'); +const sdk = require('../../../index'); +const MatrixClientPeg = require('../../../MatrixClientPeg'); +const dis = require('../../../dispatcher'); module.exports = React.createClass({ displayName: 'IntegrationsManager', @@ -59,5 +59,5 @@ module.exports = React.createClass({ return ( ); - } + }, });