Upgrading ESLint and adding some more rules. Refactoring to meet these new rules
Этот коммит содержится в:
@@ -74,11 +74,12 @@ export default class MsgTyping extends React.Component {
|
||||
case 1:
|
||||
text = users[0] + ' is typing...';
|
||||
break;
|
||||
default:
|
||||
default: {
|
||||
const last = users.pop();
|
||||
text = users.join(', ') + ' and ' + last + ' are typing...';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
this.setState({text});
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user