spee.ch/react/containers/ChannelCreateForm/index.js
2018-01-17 10:49:57 -08:00

13 lines
361 B
JavaScript

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