Local-only option and dropdown all working

This commit is contained in:
Surinna Curtis authored and Gô Shoemake committed 2017-07-04 21:33:53 -07:00
1 parent b73ee36949
commit 556cede00f
6 files changed
+76 -10

No files matched your search

@@ -1,3 +1,17 @@
import { connect } from 'react-redux';
import AdvancedOptionsDropdown from '../components/advanced_options_dropdown';
import { changeComposeAdvancedOption } from '../../../actions/compose';
export default AdvancedOptionsDropdown;
const mapStateToProps = state => ({
values: state.getIn(['compose', 'advanced_options']),
});
const mapDispatchToProps = dispatch => ({
onChange (option) {
dispatch(changeComposeAdvancedOption(option));
},
});
export default connect(mapStateToProps, mapDispatchToProps)(AdvancedOptionsDropdown);