Browse Source

fix(cleanup): remove hard-coded initialState data and set PropTypes on ConnectManually

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
813585a2ec
  1. 15
      app/components/Contacts/ConnectManually.js
  2. 4
      app/reducers/channels.js

15
app/components/Contacts/ConnectManually.js

@ -88,6 +88,19 @@ class ConnectManually extends React.Component {
} }
} }
ConnectManually.propTypes = {} ConnectManually.propTypes = {
manualFormOpen: PropTypes.bool.isRequired,
manualSearchQuery: PropTypes.string.isRequired,
manualFormIsValid: PropTypes.object.isRequired,
updateManualFormErrors: PropTypes.func.isRequired,
openSubmitChannelForm: PropTypes.func.isRequired,
updateManualFormSearchQuery: PropTypes.func.isRequired,
setNode: PropTypes.func.isRequired,
showErrors: PropTypes.bool.isRequired
}
export default ConnectManually export default ConnectManually

4
app/reducers/channels.js

@ -521,9 +521,7 @@ const initialState = {
{ key: 'CLOSING_PENDING_CHANNELS', name: 'Closing' } { key: 'CLOSING_PENDING_CHANNELS', name: 'Closing' }
], ],
loadingChannelPubkeys: [ loadingChannelPubkeys: [],
'039cc950286a8fa99218283d1adc2456e0d5e81be558da77dd6e85ba9a1fff5ad3'
],
closingChannelIds: [], closingChannelIds: [],
contactModal: { contactModal: {

Loading…
Cancel
Save