This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-07-12 01:02:51 -07:00
|
|
|
// Package imports //
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
|
|
|
// Mastodon imports //
|
2017-07-11 22:50:50 -07:00
|
|
|
import { toggleComposeAdvancedOption } from '../../../mastodon/actions/compose';
|
2017-07-12 01:02:51 -07:00
|
|
|
|
|
|
|
// Our imports //
|
|
|
|
import ComposeAdvancedOptions from '../../components/compose/advanced_options';
|
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
|
|
|
values: state.getIn(['compose', 'advanced_options']),
|
|
|
|
});
|
|
|
|
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
|
|
|
|
onChange (option) {
|
2017-07-11 22:50:50 -07:00
|
|
|
dispatch(toggleComposeAdvancedOption(option));
|
2017-07-12 01:02:51 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ComposeAdvancedOptions);
|