import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';

import * as actionCreators from './actionCreators';
import Settings from './Settings';

const mapStateToProps = state => ({
  fullscreen: state.appProperties.fullscreen,
  showNotYetTasks: state.appProperties.showNotYetTasks,
  calendarSystem: state.appProperties.calendarSystem,
});

const mapDispatchToProps = dispatch => bindActionCreators(actionCreators, dispatch);

const SettingsContainer = connect(mapStateToProps, mapDispatchToProps)(Settings);

export default SettingsContainer;

import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';

import * as actionCreators from './actionCreators';
import Settings from './Settings';

const mapStateToProps = state => ({
  fullscreen: state.appProperties.fullscreen,
  showNotYetTasks: state.appProperties.showNotYetTasks,
  calendarSystem: state.appProperties.calendarSystem,
  firstDayOfWeek: state.appProperties.firstDayOfWeek,
});

const mapDispatchToProps = dispatch => bindActionCreators(actionCreators, dispatch);

const SettingsContainer = connect(mapStateToProps, mapDispatchToProps)(Settings);

export default SettingsContainer;

Add firstDayOfWeek to Settings mapped props
Add firstDayOfWeek to Settings mapped props
