Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix details panel links #2265

Merged
merged 1 commit into from
Feb 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';
import { connect } from 'react-redux';

import { doControl } from '../../actions/app-actions';

export default class NodeDetailsControlButton extends React.PureComponent {
class NodeDetailsControlButton extends React.Component {
constructor(props, context) {
super(props, context);
this.handleClick = this.handleClick.bind(this);
Expand All @@ -23,3 +24,6 @@ export default class NodeDetailsControlButton extends React.PureComponent {
this.props.dispatch(doControl(this.props.nodeId, this.props.control));
}
}

// Using this instead of PureComponent because of props.dispatch
export default connect()(NodeDetailsControlButton);
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react';
import { connect } from 'react-redux';

import { clickRelative } from '../../actions/app-actions';
import MatchedText from '../matched-text';

export default class NodeDetailsRelativesLink extends React.PureComponent {
class NodeDetailsRelativesLink extends React.Component {

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

constructor(props, context) {
super(props, context);
this.handleClick = this.handleClick.bind(this);
Expand Down Expand Up @@ -35,3 +36,6 @@ export default class NodeDetailsRelativesLink extends React.PureComponent {
);
}
}

// Using this instead of PureComponent because of props.dispatch
export default connect()(NodeDetailsRelativesLink);
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';
import { connect } from 'react-redux';

import { clickRelative } from '../../actions/app-actions';

export default class NodeDetailsTableNodeLink extends React.PureComponent {
class NodeDetailsTableNodeLink extends React.Component {
constructor(props, context) {
super(props, context);
this.handleClick = this.handleClick.bind(this);
Expand Down Expand Up @@ -43,3 +44,6 @@ export default class NodeDetailsTableNodeLink extends React.PureComponent {
);
}
}

// Using this instead of PureComponent because of props.dispatch
export default connect()(NodeDetailsTableNodeLink);