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.

52 lines
1013 B

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