fix PR feedback
This commit is contained in:
parent
9e67dbf008
commit
254427461d
8 changed files with 21 additions and 22 deletions
|
@ -18,6 +18,7 @@ limitations under the License.
|
|||
import React from 'react';
|
||||
import OpenRoomsStore from '../../stores/OpenRoomsStore';
|
||||
import dis from '../../dispatcher';
|
||||
import {_t} from '../../languageHandler';
|
||||
import RoomView from './RoomView';
|
||||
import classNames from 'classnames';
|
||||
import MainSplit from './MainSplit';
|
||||
|
@ -48,7 +49,6 @@ export default class RoomGridView extends React.Component {
|
|||
componentWillMount() {
|
||||
this._unmounted = false;
|
||||
this._openRoomsStoreRegistration = OpenRoomsStore.addListener(this.onRoomsChanged);
|
||||
this._dispatcherRef = dis.register(this._onAction);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
@ -56,7 +56,6 @@ export default class RoomGridView extends React.Component {
|
|||
if (this._openRoomsStoreRegistration) {
|
||||
this._openRoomsStoreRegistration.remove();
|
||||
}
|
||||
dis.unregister(this._dispatcherRef);
|
||||
}
|
||||
|
||||
onRoomsChanged() {
|
||||
|
@ -67,13 +66,6 @@ export default class RoomGridView extends React.Component {
|
|||
});
|
||||
}
|
||||
|
||||
_onAction(payload) {
|
||||
switch (payload.action) {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
_setActive(i) {
|
||||
const store = OpenRoomsStore.getRoomStoreAt(i);
|
||||
if (store !== this.state.activeRoomStore) {
|
||||
|
@ -125,7 +117,7 @@ export default class RoomGridView extends React.Component {
|
|||
/>
|
||||
</section>);
|
||||
} else {
|
||||
return (<section className={"mx_GroupGridView_emptyTile"} key={`empty-${i}`} />);
|
||||
return (<section className={"mx_GroupGridView_emptyTile"} key={`empty-${i}`}>{_t("No room in this tile yet.")}</section>);
|
||||
}
|
||||
}) }
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue