Scroll text inputs into view, use red labels in text inputs when theres an error, only autocapitalize the name field

This commit is contained in:
Ken-Håvard Lieng 2018-06-03 06:18:03 +02:00
parent f5de115534
commit d2c1297cf7
12 changed files with 204 additions and 137 deletions

View file

@ -1,4 +1,5 @@
import React, { PureComponent } from 'react';
import classnames from 'classnames';
import TabListItem from './TabListItem';
export default class TabList extends PureComponent {
@ -8,9 +9,12 @@ export default class TabList extends PureComponent {
render() {
const { tab, channels, servers, privateChats, showTabList } = this.props;
const className = showTabList ? 'tablist off-canvas' : 'tablist';
const tabs = [];
const className = classnames('tablist', {
'off-canvas': showTabList
});
channels.forEach(server => {
const { address } = server;
const srv = servers[address];