Skip to content

Commit

Permalink
lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
alx committed Apr 11, 2017
1 parent e9cfdd2 commit 0ec59c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/AppState.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ class AppState {
}
}

//if (settings.layout) {
// this.layout = Object.assign(this.layout, settings.layout);
//}
// if (settings.layout) {
// this.layout = Object.assign(this.layout, settings.layout);
// }

}

Expand Down
18 changes: 3 additions & 15 deletions src/Sigma/ForceLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,8 @@ class ForceLink extends React.Component {
this._refreshGraph();
}

componentWillReceiveProps(nextProps) {
console.log(`componentWillReceiveProps`);
console.log(nextProps);
}

componentWillUpdate(nextProps, nextState) {
console.log(`componentWillUpdate`);
console.log(nextProps);
console.log(nextState);
}

// Change sigma status only after react rendering complete
componentDidUpdate(prevProps, prevState) {
console.log(`componentDidUpdate`)
console.log(prevProps);
console.log(prevState);
const s = this.props.sigma;
if (this.props.shouldStop) {
this._stopForceLink();
Expand Down Expand Up @@ -171,6 +157,8 @@ ForceLink.propTypes = {
randomize: require('react').PropTypes.oneOf(['globally', 'locally', 'no']),
timeout: require('react').PropTypes.number,
sigma: require('react').PropTypes.any,
appState: require('react').PropTypes.any
appState: require('react').PropTypes.any,
shouldStart: require('react').PropTypes.bool,
shouldStop: require('react').PropTypes.bool
};
export default ForceLink;

0 comments on commit 0ec59c8

Please sign in to comment.