All files / comparison_chart index.js

100% Statements 2/2
100% Branches 0/0
100% Functions 2/2
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25        1x       4x                                
import { connect } from 'react-redux';
import ComparisonChart from './components/ChartWrapper';
 
function mapStateToProps (state, ownProps) {
  return {
    metrics: state.comparison.metrics,
    metricKey: ownProps.metricKey,
    profiles: state.profiles.profiles,
    profileIds: state.multiProfileSelector.selectedProfiles.map(p => p.id),
    loading: state.comparison.loading,
  };
}
 
// default export = container
export default connect(
  mapStateToProps,
)(ComparisonChart);
 
// export reducer, actions and action types
export reducer, { actions, actionTypes } from './reducer';
export middleware from './middleware';
 
export Chart from './components/ChartAndFooter';
export Title from './components/Title';