All files / nav-sidebar index.js

100% Statements 3/3
100% Branches 2/2
100% Functions 3/3
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21            6x               3x 2x          
import { push } from 'connected-react-router';
import { connect } from 'react-redux';
// import { actions } from '@bufferapp/analyze-profile-selector';
import NavSidebar from './components/NavSidebar';
 
export default connect(
  state => ({
    daysRemaining: state.account.trialDaysRemaining,
    onTrial: state.account.onTrial,
    isOwner: state.profiles.isOwner,
    organizationId: state.profiles.organizationId,
    channels: state.navSidebar.channels,
    isGlobalUser: state.appSidebar.user.productlinks && state.appSidebar.user.productlinks.length > 0,
  }),
  dispatch => ({
    onClick: path => dispatch(push(path)),
  }),
)(NavSidebar);
 
export reducer, { actions, actionTypes } from './reducer';