Conversation
@derhuerst I like this convention, but you might want to say how you feel about it before it's carved in stone |
@@ -128,11 +131,13 @@ export default class Application extends Component { | |||
<Button | |||
disabled={ registerBusy } | |||
invert={ registerType !== 'file' } | |||
onClick={ this.onClickTypeNormal }>File Link</Button> | |||
onClick={ this.onClickTypeNormal } | |||
>File Link</Button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know the diff has been produced automatically, but this is still not consistent with the other places. Consider adapting it. – Same below.
@@ -39,7 +38,8 @@ class AccountSelectorItem extends Component { | |||
|
|||
const icon = (<IdentityIcon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider another newline here.
@@ -25,7 +25,7 @@ class AccountSelectorContainer extends Component { | |||
render () { | |||
return (<AccountSelector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, consider another newline here.
@@ -155,7 +160,8 @@ export default class QueryAction extends Component { | |||
|
|||
validationType={ SIMPLE_TOKEN_ADDRESS_TYPE } | |||
onChange={ this.onChange } | |||
onEnter={ this.onQuery } />) | |||
onEnter={ this.onQuery } | |||
/>) | |||
: (<InputText |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, consider another newline here.
@@ -22,11 +22,10 @@ import Actions from './component'; | |||
import { registerToken, registerReset, queryToken, queryReset } from './actions'; | |||
|
|||
class TokensContainer extends Component { | |||
|
|||
render () { | |||
return (<Actions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, consider another newline here.
@@ -39,7 +39,7 @@ class Container extends Component { | |||
return (<Application |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, consider another newline here.
@@ -20,11 +20,10 @@ import { connect } from 'react-redux'; | |||
import InputText from './input-text'; | |||
|
|||
class InputTextContainer extends Component { | |||
|
|||
render () { | |||
return (<InputText |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, consider another newline here.
@@ -277,7 +276,7 @@ class WriteContract extends Component { | |||
label='Deploy' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indentation feels inconsistent with the rest.
@ngotchac This convention makes sense to me. What I've been having trouble with is how/which variables/props to group, not how much spacing etc. |
@derhuerst Thanks for the run-though, will look at the ones that jumped out, may as well help Mrs. Auto a bit for future sanity. |
Additional eslint rules so we can stop re-formatting code from others due to differences in interpretation. (Auto-fixes done on failed checks with
eslint --fix
- insubstantial changes, although a large number automatically found & fixed.)