dispatch/client/js/containers/Connect.js

21 lines
572 B
JavaScript
Raw Normal View History

import { createStructuredSelector } from 'reselect';
import Connect from 'components/pages/Connect';
import { getConnectDefaults, getApp } from 'state/app';
import { join } from 'state/channels';
import { connect as connectServer } from 'state/servers';
import { select } from 'state/tab';
import connect from 'utils/connect';
2015-12-28 23:34:32 +00:00
const mapState = createStructuredSelector({
defaults: getConnectDefaults,
hexIP: state => getApp(state).hexIP
});
2017-05-15 04:51:24 +00:00
const mapDispatch = {
join,
connect: connectServer,
select
};
2020-04-30 05:54:30 +00:00
export default connect(mapState, mapDispatch)(Connect);