Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 6c08bb2

Browse files
fix lint
1 parent 108c577 commit 6c08bb2

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

lib/views/github-tab-view.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ export default class GitHubTabView extends React.Component {
3333
}
3434

3535
render() {
36-
const { currentRemote, remotes, handleRemoteSelect } = this.props;
36+
const {currentRemote, remotes, handleRemoteSelect} = this.props;
3737
const currentRemoteName = currentRemote ? currentRemote.name : ' ';
3838
return (
3939
<div className="github-GitHub" ref={this.props.rootHolder.setter}>
4040
<header className="github-Project">
41-
<img className="github-Project-avatar" src="https://avatars.githubusercontent.com/u/e?email=smashwilson%40github.202132.xyz&amp;s=32" />
41+
<img alt="Your Github Avatar" className="github-Project-avatar" src="https://avatars.githubusercontent.com/u/e?email=smashwilson%40github.202132.xyz&amp;s=32" />
4242
<RemoteSelector
4343
currentRemoteName={currentRemoteName ? currentRemoteName : ' '}
4444
remotes={remotes}
4545

46-
handleRemoteSelect={(e) => handleRemoteSelect(e, remotes.withName(e.target.value))}
46+
handleRemoteSelect={e => handleRemoteSelect(e, remotes.withName(e.target.value))}
4747
/>
48-
<span className="github-Project-refreshButton icon icon-sync" onClick={() => null}/>
48+
<span className="github-Project-refreshButton icon icon-sync" onClick={() => null} />
4949
</header>
5050
<div className="github-GitHub-content">
5151
{this.renderRemote()}

lib/views/remote-selector.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33

4-
import {
5-
RemoteSetPropType, RemotePropType
6-
} from '../prop-types';
4+
import {RemoteSetPropType} from '../prop-types';
75

86
export default class RemoteSelector extends React.Component {
97
static propTypes = {
@@ -15,19 +13,20 @@ export default class RemoteSelector extends React.Component {
1513

1614
render() {
1715
return (
18-
<select className="github-Project-path input-select" value={this.props.currentRemoteName} onChange={this.props.handleRemoteSelect}>
16+
<select
17+
className="github-Project-path input-select"
18+
value={this.props.currentRemoteName}
19+
onChange={this.props.handleRemoteSelect}>
1920
{this.renderRemotes()}
2021
</select>
2122
);
2223
}
2324

2425
renderRemotes = () => {
2526
const remoteOptions = [];
26-
for (let remote of this.props.remotes) {
27-
remoteOptions.push(
28-
<option>{remote.name}</option>
29-
);
27+
for (const remote of this.props.remotes) {
28+
remoteOptions.push(<option>{remote.name}</option>);
3029
}
3130
return remoteOptions;
3231
};
33-
};
32+
}

0 commit comments

Comments
 (0)