You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
500 B
17 lines
500 B
import { connect } from 'react-redux';
|
|
import AdvancedOptionsDropdown from '../components/advanced_options_dropdown';
|
|
import { changeComposeAdvancedOption } from '../../../actions/compose';
|
|
|
|
const mapStateToProps = state => ({
|
|
values: state.getIn(['compose', 'advanced_options']),
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
onChange (option) {
|
|
dispatch(changeComposeAdvancedOption(option));
|
|
},
|
|
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(AdvancedOptionsDropdown); |