1
0
REI-Fixed/app/javascript/mastodon/features/compose/containers/privacy_dropdown_container.js

18 lines
454 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2017-03-25 08:01:43 +09:00
import PrivacyDropdown from '../components/privacy_dropdown';
import { changeComposeVisibility } from '../../../actions/compose';
const mapStateToProps = state => ({
2017-03-25 08:01:43 +09:00
value: state.getIn(['compose', 'privacy'])
});
const mapDispatchToProps = dispatch => ({
2017-03-25 08:01:43 +09:00
onChange (value) {
dispatch(changeComposeVisibility(value));
}
});
2017-03-25 08:01:43 +09:00
export default connect(mapStateToProps, mapDispatchToProps)(PrivacyDropdown);