|
@ -3,6 +3,7 @@ import { connect } from 'react-redux' |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
fetchChannels, |
|
|
fetchChannels, |
|
|
|
|
|
openChannel, |
|
|
|
|
|
|
|
|
channelsSelectors |
|
|
channelsSelectors |
|
|
} from 'reducers/channels' |
|
|
} from 'reducers/channels' |
|
@ -25,6 +26,7 @@ import Channels from '../components/Channels' |
|
|
|
|
|
|
|
|
const mapDispatchToProps = { |
|
|
const mapDispatchToProps = { |
|
|
fetchChannels, |
|
|
fetchChannels, |
|
|
|
|
|
openChannel, |
|
|
|
|
|
|
|
|
openChannelForm, |
|
|
openChannelForm, |
|
|
closeChannelForm, |
|
|
closeChannelForm, |
|
@ -46,11 +48,13 @@ const mapStateToProps = state => ({ |
|
|
allChannels: channelsSelectors.allChannels(state), |
|
|
allChannels: channelsSelectors.allChannels(state), |
|
|
currentTicker: tickerSelectors.currentTicker(state), |
|
|
currentTicker: tickerSelectors.currentTicker(state), |
|
|
channelFormHeader: channelFormSelectors.channelFormHeader(state), |
|
|
channelFormHeader: channelFormSelectors.channelFormHeader(state), |
|
|
channelFormProgress: channelFormSelectors.channelFormProgress(state) |
|
|
channelFormProgress: channelFormSelectors.channelFormProgress(state), |
|
|
|
|
|
stepTwoIsValid: channelFormSelectors.stepTwoIsValid(state) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
const mergeProps = (stateProps, dispatchProps, ownProps) => { |
|
|
const mergeProps = (stateProps, dispatchProps, ownProps) => { |
|
|
const channelFormProps = { |
|
|
const channelFormProps = { |
|
|
|
|
|
openChannel: dispatchProps.openChannel, |
|
|
closeChannelForm: dispatchProps.closeChannelForm, |
|
|
closeChannelForm: dispatchProps.closeChannelForm, |
|
|
changeStep: dispatchProps.changeStep, |
|
|
changeStep: dispatchProps.changeStep, |
|
|
setNodeKey: dispatchProps.setNodeKey, |
|
|
setNodeKey: dispatchProps.setNodeKey, |
|
@ -60,6 +64,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => { |
|
|
channelform: stateProps.channelform, |
|
|
channelform: stateProps.channelform, |
|
|
channelFormHeader: stateProps.channelFormHeader, |
|
|
channelFormHeader: stateProps.channelFormHeader, |
|
|
channelFormProgress: stateProps.channelFormProgress, |
|
|
channelFormProgress: stateProps.channelFormProgress, |
|
|
|
|
|
stepTwoIsValid: stateProps.stepTwoIsValid, |
|
|
peers: stateProps.peers.peers |
|
|
peers: stateProps.peers.peers |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|