Move PollForm from features/composer to features/compose

This commit is contained in:
Thibaut Girka 2019-04-20 23:27:20 +02:00 committed by ThibG
parent 2021f14e8f
commit f7d1772fc8
3 changed files with 4 additions and 6 deletions

View file

@ -9,7 +9,7 @@ import ComposerOptions from '../../composer/options';
import ComposerPublisher from '../../composer/publisher'; import ComposerPublisher from '../../composer/publisher';
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 PollFormContainer from '../containers/poll_form_container';
import WarningContainer from '../containers/warning_container'; import WarningContainer from '../containers/warning_container';
import ReplyIndicatorContainer from '../containers/reply_indicator_container'; import ReplyIndicatorContainer from '../containers/reply_indicator_container';
@ -382,9 +382,7 @@ class ComposeForm extends ImmutablePureComponent {
handleRef={handleRefUploadForm} handleRef={handleRefUploadForm}
/> />
) : null} ) : null}
{!!poll && ( <PollFormContainer />
<ComposerPollForm />
)}
</div> </div>
<ComposerOptions <ComposerOptions
acceptContentTypes={acceptContentTypes} acceptContentTypes={acceptContentTypes}

View file

@ -1,6 +1,6 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import PollForm from './components/poll_form'; import PollForm from '../components/poll_form';
import { addPollOption, removePollOption, changePollOption, changePollSettings } from '../../../actions/compose'; import { addPollOption, removePollOption, changePollOption, changePollSettings } from 'flavours/glitch/actions/compose';
const mapStateToProps = state => ({ const mapStateToProps = state => ({
options: state.getIn(['compose', 'poll', 'options']), options: state.getIn(['compose', 'poll', 'options']),