All files / posts-summary-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          2x                            
import { connect } from 'react-redux';
import PostsSummaryTable from './components/PostsSummaryTable';
 
// default export = container
export default connect(
  state => ({
    loading: state.postsSummary.loading,
    metrics: state.postsSummary.metrics,
    startDate: state.date.startDate,
    endDate: state.date.endDate,
    profileService: state.profiles.selectedProfile ? state.profiles.selectedProfile.service : '',
  }),
)(PostsSummaryTable);
 
// export reducer, actions and action types
export reducer, { actions, actionTypes } from './reducer';
export middleware from './middleware';
export { Table } from './components/PostsSummaryTable';
export Title from './components/Title';