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.
23 lines
544 B
23 lines
544 B
7 years ago
|
// Package imports //
|
||
|
import { connect } from 'react-redux';
|
||
|
|
||
|
// Mastodon imports //
|
||
7 years ago
|
import { toggleComposeAdvancedOption } from '../../../../mastodon/actions/compose';
|
||
7 years ago
|
|
||
|
// Our imports //
|
||
7 years ago
|
import ComposeAdvancedOptions from '.';
|
||
7 years ago
|
|
||
|
const mapStateToProps = state => ({
|
||
|
values: state.getIn(['compose', 'advanced_options']),
|
||
|
});
|
||
|
|
||
|
const mapDispatchToProps = dispatch => ({
|
||
|
|
||
|
onChange (option) {
|
||
7 years ago
|
dispatch(toggleComposeAdvancedOption(option));
|
||
7 years ago
|
},
|
||
|
|
||
|
});
|
||
|
|
||
|
export default connect(mapStateToProps, mapDispatchToProps)(ComposeAdvancedOptions);
|