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.
 
 
 

58 lines
1.2 KiB

import { connect } from 'react-redux'
import { infoSelectors } from 'reducers/info'
import { newAddress } from 'reducers/address'
import { tickerSelectors } from 'reducers/ticker'
import {
fetchPeers,
setPeer,
peersSelectors,
setPeerForm,
connectRequest,
disconnectRequest
} from 'reducers/peers'
import {
fetchChannels,
setChannel,
channelsSelectors,
setChannelForm,
openChannel,
closeChannel
} from 'reducers/channels'
import Wallet from '../components/Wallet'
const mapDispatchToProps = {
newAddress,
fetchPeers,
setPeer,
connectRequest,
disconnectRequest,
fetchChannels,
setChannel,
openChannel,
closeChannel,
setPeerForm,
setChannelForm
}
const mapStateToProps = state => ({
info: state.info,
address: state.address,
ticker: state.ticker,
peers: state.peers,
channels: state.channels,
allChannels: channelsSelectors.allChannels(state),
peerModalOpen: peersSelectors.peerModalOpen(state),
channelModalOpen: channelsSelectors.channelModalOpen(state),
currentTicker: tickerSelectors.currentTicker(state),
explorerLinkBase: infoSelectors.explorerLinkBase(state)
})
export default connect(mapStateToProps, mapDispatchToProps)(Wallet)