mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-21 04:39:23 +00:00
382b2a506a
Port 38c6216082
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
15 lines
481 B
JavaScript
15 lines
481 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()),
|
|
});
|
|
|
|
export default connect(null, mapDispatchToProps)(Dropdown);
|