forked from treehouse/mastodon
18 lines
454 B
JavaScript
18 lines
454 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
import PrivacyDropdown from '../components/privacy_dropdown';
|
||
|
import { changeComposeVisibility } from '../../../actions/compose';
|
||
|
|
||
|
const mapStateToProps = state => ({
|
||
|
value: state.getIn(['compose', 'privacy'])
|
||
|
});
|
||
|
|
||
|
const mapDispatchToProps = dispatch => ({
|
||
|
|
||
|
onChange (value) {
|
||
|
dispatch(changeComposeVisibility(value));
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
export default connect(mapStateToProps, mapDispatchToProps)(PrivacyDropdown);
|