Revert "PollContainer: don't pass me as a prop"

This reverts commit dc2d3b1b09.
This commit is contained in:
Alex Gleason 2022-03-10 19:36:58 -06:00
parent f91344366d
commit d600a74410
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 3 additions and 0 deletions

View file

@ -12,6 +12,7 @@ import { vote, fetchPoll } from 'soapbox/actions/polls';
import Icon from 'soapbox/components/icon'; import Icon from 'soapbox/components/icon';
import emojify from 'soapbox/features/emoji/emoji'; import emojify from 'soapbox/features/emoji/emoji';
import Motion from 'soapbox/features/ui/util/optional_motion'; import Motion from 'soapbox/features/ui/util/optional_motion';
import SoapboxPropTypes from 'soapbox/utils/soapbox_prop_types';
import RelativeTimestamp from './relative_timestamp'; import RelativeTimestamp from './relative_timestamp';
@ -34,6 +35,7 @@ class Poll extends ImmutablePureComponent {
intl: PropTypes.object.isRequired, intl: PropTypes.object.isRequired,
dispatch: PropTypes.func, dispatch: PropTypes.func,
disabled: PropTypes.bool, disabled: PropTypes.bool,
me: SoapboxPropTypes.me,
status: PropTypes.string, status: PropTypes.string,
}; };

View file

@ -4,6 +4,7 @@ import Poll from 'soapbox/components/poll';
const mapStateToProps = (state, { pollId }) => ({ const mapStateToProps = (state, { pollId }) => ({
poll: state.getIn(['polls', pollId]), poll: state.getIn(['polls', pollId]),
me: state.get('me'),
}); });