dispatch/client/js/containers/Connect.js

22 lines
613 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';
2020-06-15 08:58:51 +00:00
import { connect as connectNetwork } from 'state/networks';
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,
query: state => state.router.query
});
2017-05-15 04:51:24 +00:00
const mapDispatch = {
join,
2020-06-15 08:58:51 +00:00
connect: connectNetwork,
select
};
2020-04-30 05:54:30 +00:00
export default connect(mapState, mapDispatch)(Connect);