|
|
@ -7,12 +7,12 @@ import ImmutablePureComponent from 'react-immutable-pure-component'; |
|
|
|
// Components.
|
|
|
|
// Components.
|
|
|
|
import ComposerOptions from '../../composer/options'; |
|
|
|
import ComposerOptions from '../../composer/options'; |
|
|
|
import ComposerPublisher from '../../composer/publisher'; |
|
|
|
import ComposerPublisher from '../../composer/publisher'; |
|
|
|
import ComposerReply from '../../composer/reply'; |
|
|
|
|
|
|
|
import ComposerSpoiler from '../../composer/spoiler'; |
|
|
|
import ComposerSpoiler from '../../composer/spoiler'; |
|
|
|
import ComposerTextarea from '../../composer/textarea'; |
|
|
|
import ComposerTextarea from '../../composer/textarea'; |
|
|
|
import ComposerUploadForm from '../../composer/upload_form'; |
|
|
|
import ComposerUploadForm from '../../composer/upload_form'; |
|
|
|
import ComposerPollForm from '../../composer/poll_form'; |
|
|
|
import ComposerPollForm from '../../composer/poll_form'; |
|
|
|
import WarningContainer from '../containers/warning_container'; |
|
|
|
import WarningContainer from '../containers/warning_container'; |
|
|
|
|
|
|
|
import ReplyIndicatorContainer from '../containers/reply_indicator_container'; |
|
|
|
|
|
|
|
|
|
|
|
// Utils.
|
|
|
|
// Utils.
|
|
|
|
import { countableText } from 'flavours/glitch/util/counter'; |
|
|
|
import { countableText } from 'flavours/glitch/util/counter'; |
|
|
@ -49,7 +49,6 @@ class ComposeForm extends ImmutablePureComponent { |
|
|
|
preselectDate: PropTypes.instanceOf(Date), |
|
|
|
preselectDate: PropTypes.instanceOf(Date), |
|
|
|
privacy: PropTypes.string, |
|
|
|
privacy: PropTypes.string, |
|
|
|
progress: PropTypes.number, |
|
|
|
progress: PropTypes.number, |
|
|
|
inReplyTo: ImmutablePropTypes.map, |
|
|
|
|
|
|
|
resetFileKey: PropTypes.number, |
|
|
|
resetFileKey: PropTypes.number, |
|
|
|
sideArm: PropTypes.string, |
|
|
|
sideArm: PropTypes.string, |
|
|
|
sensitive: PropTypes.bool, |
|
|
|
sensitive: PropTypes.bool, |
|
|
@ -65,7 +64,6 @@ class ComposeForm extends ImmutablePureComponent { |
|
|
|
preselectOnReply: PropTypes.bool, |
|
|
|
preselectOnReply: PropTypes.bool, |
|
|
|
|
|
|
|
|
|
|
|
// Dispatch props.
|
|
|
|
// Dispatch props.
|
|
|
|
onCancelReply: PropTypes.func, |
|
|
|
|
|
|
|
onChangeAdvancedOption: PropTypes.func, |
|
|
|
onChangeAdvancedOption: PropTypes.func, |
|
|
|
onChangeDescription: PropTypes.func, |
|
|
|
onChangeDescription: PropTypes.func, |
|
|
|
onChangeSensitivity: PropTypes.func, |
|
|
|
onChangeSensitivity: PropTypes.func, |
|
|
@ -283,7 +281,6 @@ class ComposeForm extends ImmutablePureComponent { |
|
|
|
layout, |
|
|
|
layout, |
|
|
|
media, |
|
|
|
media, |
|
|
|
poll, |
|
|
|
poll, |
|
|
|
onCancelReply, |
|
|
|
|
|
|
|
onChangeAdvancedOption, |
|
|
|
onChangeAdvancedOption, |
|
|
|
onChangeDescription, |
|
|
|
onChangeDescription, |
|
|
|
onChangeSensitivity, |
|
|
|
onChangeSensitivity, |
|
|
@ -301,7 +298,6 @@ class ComposeForm extends ImmutablePureComponent { |
|
|
|
onUpload, |
|
|
|
onUpload, |
|
|
|
privacy, |
|
|
|
privacy, |
|
|
|
progress, |
|
|
|
progress, |
|
|
|
inReplyTo, |
|
|
|
|
|
|
|
resetFileKey, |
|
|
|
resetFileKey, |
|
|
|
sensitive, |
|
|
|
sensitive, |
|
|
|
showSearch, |
|
|
|
showSearch, |
|
|
@ -319,13 +315,7 @@ class ComposeForm extends ImmutablePureComponent { |
|
|
|
<div className='composer'> |
|
|
|
<div className='composer'> |
|
|
|
<WarningContainer /> |
|
|
|
<WarningContainer /> |
|
|
|
|
|
|
|
|
|
|
|
{inReplyTo && ( |
|
|
|
<ReplyIndicatorContainer /> |
|
|
|
<ComposerReply |
|
|
|
|
|
|
|
status={inReplyTo} |
|
|
|
|
|
|
|
intl={intl} |
|
|
|
|
|
|
|
onCancel={onCancelReply} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ComposerSpoiler |
|
|
|
<ComposerSpoiler |
|
|
|
hidden={!spoiler} |
|
|
|
hidden={!spoiler} |
|
|
|