All files / average-table index.js

100% Statements 1/1
50% Branches 1/2
100% Functions 1/1
100% Lines 1/1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23          1x                                  
import { connect } from 'react-redux';
import AverageTable from './components/AverageTable';
 
// default export = container
function mapStateToProps (state) {
  return {
    loading: state.average.loading,
    hasError: state.average.hasError,
    timezone: state.profiles.selectedProfile ? state.profiles.selectedProfile.timezone : '',
    metrics: state.average.metrics,
    profileService: state.profiles.selectedProfileService,
  };
}
export default connect(
  mapStateToProps,
)(AverageTable);
 
export { Table } from './components/AverageTable';
export Title from './components/Title';
// export reducer, actions and action types
export reducer, { actions, actionTypes } from './reducer';
export middleware from './middleware';