about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/compose/containers/dropdown_container.js
blob: 3ac16505fcb93880969470ea2ce7edc1ba195542 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { connect } from 'react-redux';
import { isUserTouching } from 'flavours/glitch/is_mobile';
import { openModal, closeModal } from 'flavours/glitch/actions/modal';
import Dropdown from '../components/dropdown';

const mapDispatchToProps = dispatch => ({
  isUserTouching,
  onModalOpen: props => dispatch(openModal('ACTIONS', props)),
  onModalClose: () => dispatch(closeModal()),
});

export default connect(null, mapDispatchToProps)(Dropdown);