This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff 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&s=32" />
41+ < img alt = "Your Github Avatar" className = "github-Project-avatar" src = "https://avatars.githubusercontent.com/u/e?email=smashwilson%40github.202132.xyz&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 ( ) }
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import PropTypes from 'prop-types' ;
33
4- import {
5- RemoteSetPropType , RemotePropType
6- } from '../prop-types' ;
4+ import { RemoteSetPropType } from '../prop-types' ;
75
86export 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+ }
You can’t perform that action at this time.
0 commit comments