summaryrefslogtreecommitdiffstats
path: root/web/react/components/more_channels.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-09-03 13:37:25 -0700
committerCorey Hulen <corey@hulen.com>2015-09-03 13:37:25 -0700
commit4f0c06114b61c92d982baac1c54ed80da93a9cc9 (patch)
treefa949f1269931b4d62bddda23e26a5dcdff9ac14 /web/react/components/more_channels.jsx
parentb3fea25eddc332e9529692733093291b10d4aeef (diff)
parent570327463ca06c23b5b54b9ec93152535836f2c0 (diff)
downloadchat-4f0c06114b61c92d982baac1c54ed80da93a9cc9.tar.gz
chat-4f0c06114b61c92d982baac1c54ed80da93a9cc9.tar.bz2
chat-4f0c06114b61c92d982baac1c54ed80da93a9cc9.zip
Merge pull request #591 from mattermost/mm-1909
MM-1909 Upgrading ESLint, turning on new rules, enabling some warnings, optimizations
Diffstat (limited to 'web/react/components/more_channels.jsx')
-rw-r--r--web/react/components/more_channels.jsx26
1 files changed, 17 insertions, 9 deletions
diff --git a/web/react/components/more_channels.jsx b/web/react/components/more_channels.jsx
index 08b2d7460..ba8be12b2 100644
--- a/web/react/components/more_channels.jsx
+++ b/web/react/components/more_channels.jsx
@@ -86,15 +86,21 @@ export default class MoreChannels extends React.Component {
{channels.map(function cMap(channel, index) {
var joinButton;
if (self.state.joiningChannel === index) {
- joinButton = (<img
- className='join-channel-loading-gif'
- src='/static/images/load.gif'
- />);
+ joinButton = (
+ <img
+ className='join-channel-loading-gif'
+ src='/static/images/load.gif'
+ />
+ );
} else {
- joinButton = (<button
- onClick={self.handleJoin.bind(self, channel, index)}
- className='btn btn-primary'>Join
- </button>);
+ joinButton = (
+ <button
+ onClick={self.handleJoin.bind(self, channel, index)}
+ className='btn btn-primary'
+ >
+ Join
+ </button>
+ );
}
return (
@@ -152,7 +158,9 @@ export default class MoreChannels extends React.Component {
data-channeltype={this.state.channelType}
type='button'
className='btn btn-primary channel-create-btn'
- onClick={this.handleNewChannel}>Create New Channel
+ onClick={this.handleNewChannel}
+ >
+ Create New Channel
</button>
</div>
<div className='modal-body'>