Move wrapWidth handling out of MessageBox, improve scroll position handling, use custom routing, close menu when clicking anywhere

This commit is contained in:
Ken-Håvard Lieng 2017-05-07 22:19:15 +02:00
parent a753efd1dd
commit fec7c93abc
24 changed files with 363 additions and 235 deletions

View file

@ -2,20 +2,9 @@ import React, { PureComponent } from 'react';
import TabListItem from './TabListItem';
export default class TabList extends PureComponent {
handleTabClick = (server, target) => {
this.props.select(server, target);
this.props.hideMenu();
};
handleConnectClick = () => {
this.props.pushPath('/connect');
this.props.hideMenu();
};
handleSettingsClick = () => {
this.props.pushPath('/settings');
this.props.hideMenu();
};
handleTabClick = (server, target) => this.props.select(server, target);
handleConnectClick = () => this.props.pushPath('/connect');
handleSettingsClick = () => this.props.pushPath('/settings');
render() {
const { tab, channels, servers, privateChats, showTabList } = this.props;