spee.ch/react/containers/ChannelCreateForm/index.js

14 lines
361 B
JavaScript
Raw Normal View History

2018-01-17 19:49:57 +01:00
import { connect } from 'react-redux';
import { updateLoggedInChannel } from '../../actions';
import View from './view.jsx';
const mapDispatchToProps = dispatch => {
return {
onChannelLogin: (name, shortId, longId) => {
dispatch(updateLoggedInChannel(name, shortId, longId));
},
};
};
export default connect(null, mapDispatchToProps)(View);