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.
18 lines
454 B
18 lines
454 B
8 years ago
|
import { connect } from 'react-redux';
|
||
8 years ago
|
import PrivacyDropdown from '../components/privacy_dropdown';
|
||
8 years ago
|
import { changeComposeVisibility } from '../../../actions/compose';
|
||
|
|
||
|
const mapStateToProps = state => ({
|
||
8 years ago
|
value: state.getIn(['compose', 'privacy'])
|
||
8 years ago
|
});
|
||
|
|
||
|
const mapDispatchToProps = dispatch => ({
|
||
|
|
||
8 years ago
|
onChange (value) {
|
||
|
dispatch(changeComposeVisibility(value));
|
||
8 years ago
|
}
|
||
|
|
||
|
});
|
||
|
|
||
8 years ago
|
export default connect(mapStateToProps, mapDispatchToProps)(PrivacyDropdown);
|