From 813585a2ec625febaca21343556b85efa86caf41 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Wed, 4 Apr 2018 09:47:33 -0500 Subject: [PATCH] fix(cleanup): remove hard-coded initialState data and set PropTypes on ConnectManually --- app/components/Contacts/ConnectManually.js | 15 ++++++++++++++- app/reducers/channels.js | 4 +--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/components/Contacts/ConnectManually.js b/app/components/Contacts/ConnectManually.js index afda00e2..fc6a2bc1 100644 --- a/app/components/Contacts/ConnectManually.js +++ b/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 diff --git a/app/reducers/channels.js b/app/reducers/channels.js index 69291459..6c255519 100644 --- a/app/reducers/channels.js +++ b/app/reducers/channels.js @@ -521,9 +521,7 @@ const initialState = { { key: 'CLOSING_PENDING_CHANNELS', name: 'Closing' } ], - loadingChannelPubkeys: [ - '039cc950286a8fa99218283d1adc2456e0d5e81be558da77dd6e85ba9a1fff5ad3' - ], + loadingChannelPubkeys: [], closingChannelIds: [], contactModal: {