gab-social/app/javascript/gabsocial/containers/poll_container.js

9 lines
228 B
JavaScript
Raw Normal View History

2019-07-02 08:10:25 +01:00
import { connect } from 'react-redux';
import Poll from 'gabsocial/components/poll';
const mapStateToProps = (state, { pollId }) => ({
poll: state.getIn(['polls', pollId]),
});
export default connect(mapStateToProps)(Poll);