Browse Source

fix(channels reducer): remove hard code data from channels reducer

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
3edf6fe406
  1. 17
      app/reducers/channels.js
  2. 4
      app/routes/channels/components/Channels.js

17
app/reducers/channels.js

@ -322,22 +322,7 @@ const initialState = {
channels: [],
pendingChannels: {
total_limbo_balance: '',
pending_open_channels: [
{
channel: {
remote_node_pub: '0368b02d9e4a44bb156660cf48ed7492445c7cb95435c86125e74953047c7706e3',
channel_point: '01de1cddaf47637b71c37e019f42746aa1135351a4e4539d983ca95f12049a82:0',
capacity: '16777216',
local_balance: '16768528',
remote_balance: '0'
},
confirmation_height: 0,
blocks_till_open: 0,
commit_fee: '8688',
commit_weight: '600',
fee_per_kw: '12000'
}
],
pending_open_channels: [],
pending_closing_channels: [],
pending_force_closing_channels: []
},

4
app/routes/channels/components/Channels.js

@ -184,10 +184,11 @@ Channels.propTypes = {
channels: PropTypes.object.isRequired,
currentChannels: PropTypes.array.isRequired,
openChannels: PropTypes.array.isRequired,
nonActiveFilters: PropTypes.array.isRequired,
updateChannelSearchQuery: PropTypes.func.isRequired,
setViewType: PropTypes.func.isRequired,
setCurrentChannel: PropTypes.func.isRequired,
openChannelForm: PropTypes.func.isRequired,
closeChannel: PropTypes.func.isRequired,
toggleFilterPulldown: PropTypes.func.isRequired,
@ -197,7 +198,6 @@ Channels.propTypes = {
currentTicker: PropTypes.object.isRequired,
channelFormProps: PropTypes.object.isRequired,
nonActiveFilters: PropTypes.object.isRequired,
network: PropTypes.object.isRequired,
fetchDescribeNetwork: PropTypes.func.isRequired,

Loading…
Cancel
Save