Move PollForm from features/composer to features/compose

master
Thibaut Girka 6 years ago committed by ThibG
parent f1a22e33e2
commit c5f49a92dc
  1. 6
      app/javascript/flavours/glitch/features/compose/components/compose_form.js
  2. 0
      app/javascript/flavours/glitch/features/compose/components/poll_form.js
  3. 4
      app/javascript/flavours/glitch/features/compose/containers/poll_form_container.js

@ -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}

@ -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']),
Loading…
Cancel
Save