|
|
@ -118,7 +118,7 @@ class ComposeForm extends ImmutablePureComponent {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
render () {
|
|
|
|
render () {
|
|
|
|
const { intl, onPaste } = this.props;
|
|
|
|
const { intl, onPaste, showSearch } = this.props;
|
|
|
|
const disabled = this.props.is_submitting;
|
|
|
|
const disabled = this.props.is_submitting;
|
|
|
|
const text = [this.props.spoiler_text, this.props.text].join('');
|
|
|
|
const text = [this.props.spoiler_text, this.props.text].join('');
|
|
|
|
|
|
|
|
|
|
|
@ -156,6 +156,7 @@ class ComposeForm extends ImmutablePureComponent {
|
|
|
|
onSuggestionsClearRequested={this.onSuggestionsClearRequested}
|
|
|
|
onSuggestionsClearRequested={this.onSuggestionsClearRequested}
|
|
|
|
onSuggestionSelected={this.onSuggestionSelected}
|
|
|
|
onSuggestionSelected={this.onSuggestionSelected}
|
|
|
|
onPaste={onPaste}
|
|
|
|
onPaste={onPaste}
|
|
|
|
|
|
|
|
autoFocus={!showSearch}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<EmojiPickerDropdown onPickEmoji={this.handleEmojiPick} />
|
|
|
|
<EmojiPickerDropdown onPickEmoji={this.handleEmojiPick} />
|
|
|
@ -204,7 +205,12 @@ ComposeForm.propTypes = {
|
|
|
|
onSuggestionSelected: PropTypes.func.isRequired,
|
|
|
|
onSuggestionSelected: PropTypes.func.isRequired,
|
|
|
|
onChangeSpoilerText: PropTypes.func.isRequired,
|
|
|
|
onChangeSpoilerText: PropTypes.func.isRequired,
|
|
|
|
onPaste: PropTypes.func.isRequired,
|
|
|
|
onPaste: PropTypes.func.isRequired,
|
|
|
|
onPickEmoji: PropTypes.func.isRequired
|
|
|
|
onPickEmoji: PropTypes.func.isRequired,
|
|
|
|
|
|
|
|
showSearch: PropTypes.bool,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComposeForm.defaultProps = {
|
|
|
|
|
|
|
|
showSearch: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export default injectIntl(ComposeForm);
|
|
|
|
export default injectIntl(ComposeForm);
|
|
|
|