spee.ch/react/containers/ChannelCreateForm/index.js
2018-01-18 09:33:26 -08:00

13 lines
359 B
JavaScript

import { connect } from 'react-redux';
import { updateLoggedInChannel } from 'actions/channel';
import View from './view';
const mapDispatchToProps = dispatch => {
return {
onChannelLogin: (name, shortId, longId) => {
dispatch(updateLoggedInChannel(name, shortId, longId));
},
};
};
export default connect(null, mapDispatchToProps)(View);