Update client dependencies

This commit is contained in:
Ken-Håvard Lieng 2018-08-12 23:19:17 +02:00
parent f20ca4038e
commit 004e7890e5
9 changed files with 1733 additions and 1595 deletions

View file

@ -4,7 +4,9 @@ import TabListItem from './TabListItem';
export default class TabList extends PureComponent {
handleTabClick = (server, target) => this.props.select(server, target);
handleConnectClick = () => this.props.push('/connect');
handleSettingsClick = () => this.props.push('/settings');
render() {

View file

@ -29,7 +29,10 @@ export default class ChatTitle extends PureComponent {
let serverError = null;
if (!tab.name && status.error) {
serverError = (
<span className="chat-topic error">Error: {status.error}</span>
<span className="chat-topic error">
Error:
{status.error}
</span>
);
}

View file

@ -98,9 +98,12 @@ describe('message reducer', () => {
};
const thunk = broadcast('test', 'srv', ['#chan1', '#chan3']);
thunk(action => {
state.messages = reducer(undefined, action);
}, () => state);
thunk(
action => {
state.messages = reducer(undefined, action);
},
() => state
);
const messages = state.messages;

View file

@ -64,7 +64,8 @@ export function isValidNick(nick, maxLength = 30) {
char > 125
) {
return false;
} else if ((i === 0 && char < 65) || char > 125) {
}
if ((i === 0 && char < 65) || char > 125) {
return false;
}
}