blob: 588861dc6684e401644f6b6b91c96927efe0c067 (
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
36
37
38
39
40
41
42
43
44
45
46
|
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="header">
<Link className="logo clearfix" to='/'>
<Logo/>
<div className="logo-text">
<h3>GitHunt</h3>
<p className="text-muted">Configure githunt through the options below</p>
</div>
</Link>
</div>
<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);
|