Browse Source

fix(lints): Don't return assignment in ref setters

renovate/lint-staged-8.x
Ben Woosley 7 years ago
parent
commit
868f70759e
No known key found for this signature in database GPG Key ID: 6EE5F3785F78B345
  1. 2
      app/routes/channels/components/Channels.js
  2. 2
      app/routes/peers/components/Peers.js

2
app/routes/channels/components/Channels.js

@ -127,7 +127,7 @@ class Channels extends Component {
</ul>
</section>
<section className={styles.refreshContainer}>
<span className={styles.refresh} onClick={refreshClicked} ref={(ref) => (this.repeat = ref)}>
<span className={styles.refresh} onClick={refreshClicked} ref={(ref) => { this.repeat = ref }}>
{
this.state.refreshing ?
<FaRepeat />

2
app/routes/peers/components/Peers.js

@ -98,7 +98,7 @@ class Peers extends Component {
</div>
<div className={styles.refreshContainer}>
<span className={styles.refresh} onClick={refreshClicked} ref={(ref) => (this.repeat = ref)}>
<span className={styles.refresh} onClick={refreshClicked} ref={(ref) => { this.repeat = ref }}>
{
this.state.refreshing ?
<FaRepeat />

Loading…
Cancel
Save