mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Move PollForm from features/composer to features/compose
This commit is contained in:
parent
f1a22e33e2
commit
c5f49a92dc
@ -9,7 +9,7 @@ import ComposerOptions from '../../composer/options';
|
||||
import ComposerPublisher from '../../composer/publisher';
|
||||
import ComposerTextarea from '../../composer/textarea';
|
||||
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 ReplyIndicatorContainer from '../containers/reply_indicator_container';
|
||||
|
||||
@ -382,9 +382,7 @@ class ComposeForm extends ImmutablePureComponent {
|
||||
handleRef={handleRefUploadForm}
|
||||
/>
|
||||
) : null}
|
||||
{!!poll && (
|
||||
<ComposerPollForm />
|
||||
)}
|
||||
<PollFormContainer />
|
||||
</div>
|
||||
<ComposerOptions
|
||||
acceptContentTypes={acceptContentTypes}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux';
|
||||
import PollForm from './components/poll_form';
|
||||
import { addPollOption, removePollOption, changePollOption, changePollSettings } from '../../../actions/compose';
|
||||
import PollForm from '../components/poll_form';
|
||||
import { addPollOption, removePollOption, changePollOption, changePollSettings } from 'flavours/glitch/actions/compose';
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
options: state.getIn(['compose', 'poll', 'options']),
|
Loading…
Reference in New Issue
Block a user