Add polls

Port front-end parts of 230a012f00 to glitch-soc
This commit is contained in:
Eugen Rochko authored and Thibaut Girka committed 2019-03-05 21:35:03 +01:00
1 parent 0d19fcc2fb
commit 8d70a8a19b
13 files changed
+355 -8

No files matched your search

@@ -0,0 +1,8 @@
import { connect } from 'react-redux';
import Poll from 'mastodon/components/poll';
const mapStateToProps = (state, { pollId }) => ({
poll: state.getIn(['polls', pollId]),
});
export default connect(mapStateToProps)(Poll);