blob: 26db8fbb2dad85ff15035ac42574f2a1e2021b08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import './styles.css';
import Logo from '../../components/icons/logo';
import OptionsForm from '../../components/options-form';
import { updateOptions } from '../../redux/preference/actions';
class OptionsContainer extends React.Component {
render() {
return (
<div className="options-container">
<div className="container shadow">
<OptionsForm
updateOptions={ this.props.updateOptions }
options={ this.props.preference.options }
/>
</div>
</div>
);
}
}
const mapStateToProps = (store) => {
return {
preference: store.preference
};
};
const mapDispatchToProps = {
updateOptions
};
export default connect(mapStateToProps, mapDispatchToProps)(OptionsContainer);
|