2020-11-10 17:07:00 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import SelectHomepage from './view';
|
2020-11-20 14:21:31 +01:00
|
|
|
import { doSetHomepage } from 'redux/actions/settings';
|
2020-11-10 17:07:00 +01:00
|
|
|
import { selectHomepageCode } from 'redux/selectors/settings';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
homepage: selectHomepageCode(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
2020-11-20 14:21:31 +01:00
|
|
|
setHomepage: value => dispatch(doSetHomepage(value)),
|
2020-11-10 17:07:00 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(SelectHomepage);
|