Skip to content

Commit

Permalink
Removed unnecessary mapStateToProps
Browse files Browse the repository at this point in the history
  • Loading branch information
abbychao committed Jul 30, 2019
1 parent 14292bc commit 83ec093
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
6 changes: 1 addition & 5 deletions src/client/components/containers/GraphContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import { connect } from 'react-redux';
import Graph from '../display/Graph.jsx';
import * as actions from '../../actions/actions';

const mapStateToProps = store => ({});

const mapDispatchToProps = dispatch => ({});

class GraphContainer extends Component {
constructor(props) {
super(props);
Expand All @@ -21,4 +17,4 @@ class GraphContainer extends Component {
}
}

export default connect(mapStateToProps, mapDispatchToProps)(GraphContainer);
export default GraphContainer;
9 changes: 1 addition & 8 deletions src/client/components/containers/ResponseContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import ResponseEventsDisplay from '../display/ResponseEventsDisplay.jsx';
import ResponseHeadersDisplay from '../display/ResponseHeadersDisplay.jsx';
import ResponseCookiesDisplay from '../display/ResponseCookiesDisplay.jsx';

const mapStateToProps = store => ({});
const mapDispatchToProps = dispatch => ({});
// TODO: Implement Redux in these components?

class ResponseContainer extends Component {
constructor(props) {
super(props);
Expand Down Expand Up @@ -91,7 +87,4 @@ class ResponseContainer extends Component {
}
}

export default connect(
mapStateToProps,
mapDispatchToProps,
)(ResponseContainer);
export default ResponseContainer;
4 changes: 1 addition & 3 deletions src/client/components/display/ReqRes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import RequestTabs from './RequestTabs.jsx';

import * as actions from '../../actions/actions';

const mapStateToProps = store => ({});

const mapDispatchToProps = dispatch => ({
reqResDelete: (reqRes) => {
dispatch(actions.reqResDelete(reqRes));
Expand Down Expand Up @@ -144,6 +142,6 @@ class ReqRes extends Component {
}

export default connect(
mapStateToProps,
null,
mapDispatchToProps,
)(ReqRes);

0 comments on commit 83ec093

Please sign in to comment.