spee.ch/client/containers/PublishDetails/index.js
2018-03-16 10:34:26 -07:00

16 lines
347 B
JavaScript

import {connect} from 'react-redux';
import {clearFile, startPublish} from 'actions/publish';
import View from './view';
const mapStateToProps = ({ channel, publish }) => {
return {
file: publish.file,
};
};
const mapDispatchToProps = {
clearFile,
startPublish,
};
export default connect(mapStateToProps, mapDispatchToProps)(View);