2017-09-07 17:12:50 -04:00
|
|
|
import {connect} from 'react-redux';
|
|
|
|
import {changeFillColor} from '../reducers/fill-color';
|
|
|
|
import FillColorIndicatorComponent from '../components/fill-color-indicator.jsx';
|
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
2017-09-07 17:49:41 -04:00
|
|
|
fillColor: state.scratchPaint.color.fillColor
|
2017-09-07 17:12:50 -04:00
|
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
2017-09-11 13:28:35 -04:00
|
|
|
onChangeFillColor: fillColor => {
|
2017-09-07 17:12:50 -04:00
|
|
|
dispatch(changeFillColor(fillColor));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
mapStateToProps,
|
|
|
|
mapDispatchToProps
|
2017-09-11 13:28:35 -04:00
|
|
|
)(FillColorIndicatorComponent);
|