Add polls

Port front-end parts of 230a012f00 to glitch-soc
This commit is contained in:
Eugen Rochko
2019-03-03 22:18:23 +01:00
committed by Thibaut Girka
parent 0d19fcc2fb
commit 8d70a8a19b
13 changed files with 355 additions and 8 deletions

View File

@@ -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);