about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/containers/poll_container.js
blob: da93cc905c0ef3752ca5ce6c91d702eade81319d (plain) (blame)
1
2
3
4
5
6
7
8
import { connect } from 'react-redux';
import Poll from 'flavours/glitch/components/poll';

const mapStateToProps = (state, { pollId }) => ({
  poll: state.getIn(['polls', pollId]),
});

export default connect(mapStateToProps)(Poll);