You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
574 B

import { withRouter } from 'react-router'
import { connect } from 'react-redux'
import {
fetchDescribeNetwork,
setCurrentTab
} from '../../../reducers/network'
import { fetchPeers } from '../../../reducers/peers'
import Network from '../components/Network'
const mapDispatchToProps = {
fetchDescribeNetwork,
setCurrentTab,
fetchPeers
}
const mapStateToProps = state => ({
network: state.network,
peers: state.peers,
identity_pubkey: state.info.data.identity_pubkey
})
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Network))