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.
25 lines
702 B
25 lines
702 B
import { connect } from 'react-redux';
|
|
|
|
import { changeComposeVisibility } from '../../../actions/compose';
|
|
import { openModal, closeModal } from '../../../actions/modal';
|
|
import { isUserTouching } from '../../../is_mobile';
|
|
import PrivacyDropdown from '../components/privacy_dropdown';
|
|
|
|
const mapStateToProps = state => ({
|
|
value: state.getIn(['compose', 'privacy']),
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
onChange (value) {
|
|
dispatch(changeComposeVisibility(value));
|
|
},
|
|
|
|
isUserTouching,
|
|
onModalOpen: props => dispatch(openModal('ACTIONS', props)),
|
|
onModalClose: () => dispatch(closeModal()),
|
|
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(PrivacyDropdown);
|