mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-22 05:08:03 +00:00
ee771f5bad
Fixes #2238
Some call sites where missed in 382b2a506a
15 lines
525 B
JavaScript
15 lines
525 B
JavaScript
import { connect } from 'react-redux';
|
|
|
|
import { openModal, closeModal } from 'flavours/glitch/actions/modal';
|
|
import { isUserTouching } from 'flavours/glitch/is_mobile';
|
|
|
|
import Dropdown from '../components/dropdown';
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
isUserTouching,
|
|
onModalOpen: props => dispatch(openModal({ modalType: 'ACTIONS', modalProps: props })),
|
|
onModalClose: () => dispatch(closeModal({ modalType: undefined, ignoreFocus: false })),
|
|
});
|
|
|
|
export default connect(null, mapDispatchToProps)(Dropdown);
|