scratch-paint/src/containers/fill-color-indicator.jsx

18 lines
503 B
React
Raw Normal View History

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 => ({
fillColor: state.scratchPaint.color.fillColor
2017-09-07 17:12:50 -04:00
});
const mapDispatchToProps = dispatch => ({
onChangeFillColor: fillColor => {
2017-09-07 17:12:50 -04:00
dispatch(changeFillColor(fillColor));
}
});
export default connect(
mapStateToProps,
mapDispatchToProps
)(FillColorIndicatorComponent);