parent
7176fa7592
commit
31559f6b59
10 changed files with 329 additions and 0 deletions
|
@ -9,6 +9,7 @@ import {
|
|||
changeComposeSpoilerText,
|
||||
insertEmojiCompose,
|
||||
insertExpirationCompose,
|
||||
insertFeaturedTagCompose,
|
||||
uploadCompose,
|
||||
} from '../../../actions/compose';
|
||||
import ComposeForm from '../components/compose_form';
|
||||
|
@ -72,6 +73,10 @@ const mapDispatchToProps = (dispatch) => ({
|
|||
dispatch(insertExpirationCompose(position, data));
|
||||
},
|
||||
|
||||
onPickFeaturedTag (position, data) {
|
||||
dispatch(insertFeaturedTagCompose(position, data));
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(ComposeForm);
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
import { connect } from 'react-redux';
|
||||
|
||||
import { openModal, closeModal } from '../../../actions/modal';
|
||||
import { isUserTouching } from '../../../is_mobile';
|
||||
import FeaturedTagsDropdown from '../components/featured_tags_dropdown';
|
||||
|
||||
const mapStateToProps = () => ({
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch, { onPickTag }) => ({
|
||||
|
||||
onChange (value) {
|
||||
if (onPickTag) {
|
||||
onPickTag(value);
|
||||
}
|
||||
},
|
||||
|
||||
isUserTouching,
|
||||
onModalOpen: props => dispatch(openModal({
|
||||
modalType: 'ACTIONS',
|
||||
modalProps: props,
|
||||
})),
|
||||
onModalClose: () => dispatch(closeModal({
|
||||
modalType: undefined,
|
||||
ignoreFocus: false,
|
||||
})),
|
||||
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(FeaturedTagsDropdown);
|
Loading…
Add table
Add a link
Reference in a new issue