From d600a7441060cadf6257a2e5a1076862de481ebb Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 10 Mar 2022 19:36:58 -0600 Subject: [PATCH] Revert "PollContainer: don't pass `me` as a prop" This reverts commit dc2d3b1b09b3e51c0677104a797ad430ed6250ab. --- app/soapbox/components/poll.js | 2 ++ app/soapbox/containers/poll_container.js | 1 + 2 files changed, 3 insertions(+) diff --git a/app/soapbox/components/poll.js b/app/soapbox/components/poll.js index 9b0327798..57d693003 100644 --- a/app/soapbox/components/poll.js +++ b/app/soapbox/components/poll.js @@ -12,6 +12,7 @@ import { vote, fetchPoll } from 'soapbox/actions/polls'; import Icon from 'soapbox/components/icon'; import emojify from 'soapbox/features/emoji/emoji'; import Motion from 'soapbox/features/ui/util/optional_motion'; +import SoapboxPropTypes from 'soapbox/utils/soapbox_prop_types'; import RelativeTimestamp from './relative_timestamp'; @@ -34,6 +35,7 @@ class Poll extends ImmutablePureComponent { intl: PropTypes.object.isRequired, dispatch: PropTypes.func, disabled: PropTypes.bool, + me: SoapboxPropTypes.me, status: PropTypes.string, }; diff --git a/app/soapbox/containers/poll_container.js b/app/soapbox/containers/poll_container.js index 4c110cdc9..50d21517a 100644 --- a/app/soapbox/containers/poll_container.js +++ b/app/soapbox/containers/poll_container.js @@ -4,6 +4,7 @@ import Poll from 'soapbox/components/poll'; const mapStateToProps = (state, { pollId }) => ({ poll: state.getIn(['polls', pollId]), + me: state.get('me'), });