From bbf66960545bfc62ffa954a5402356092ca67021 Mon Sep 17 00:00:00 2001 From: Anna Melzer Date: Thu, 1 Nov 2018 22:55:25 +0100 Subject: [PATCH] Linting/quick wins modal & pages (#2086) * fix linting for affirmPurchase modal * fix linting for confirmTransaction modal * fix linting for error modal * fix linting for filetimeout modal * fix linting for first transaction modal * fix linting for incompatible daemon modal * fix linting for external link modal * fix linting for remove file modal * fix linting for revoke claim modal * fix linting for reward approval modal * fix linting for send tip modal * fix linting for welcome modal * fix linting for page files --- src/renderer/modal/modalAffirmPurchase/index.js | 5 ++++- src/renderer/modal/modalConfirmTransaction/index.js | 5 ++++- src/renderer/modal/modalError/index.js | 5 ++++- src/renderer/modal/modalFileTimeout/index.js | 5 ++++- src/renderer/modal/modalFirstSubscription/index.js | 5 ++++- src/renderer/modal/modalIncompatibleDaemon/index.js | 5 ++++- src/renderer/modal/modalOpenExternalLink/index.js | 5 ++++- src/renderer/modal/modalRemoveFile/index.js | 5 ++++- src/renderer/modal/modalRevokeClaim/index.js | 5 ++++- src/renderer/modal/modalRewardApprovalRequired/index.js | 5 ++++- src/renderer/modal/modalSendTip/index.js | 5 ++++- src/renderer/modal/modalWelcome/index.js | 5 ++++- src/renderer/page/report/index.js | 3 +-- src/renderer/page/show/index.js | 5 ++++- src/renderer/page/transactionHistory/index.js | 5 ++++- src/renderer/page/userHistory/index.js | 3 +-- 16 files changed, 58 insertions(+), 18 deletions(-) diff --git a/src/renderer/modal/modalAffirmPurchase/index.js b/src/renderer/modal/modalAffirmPurchase/index.js index 623ae7b88..1bd9f854e 100644 --- a/src/renderer/modal/modalAffirmPurchase/index.js +++ b/src/renderer/modal/modalAffirmPurchase/index.js @@ -16,4 +16,7 @@ const perform = dispatch => ({ loadVideo: uri => dispatch(doLoadVideo(uri)), }); -export default connect(select, perform)(ModalAffirmPurchase); +export default connect( + select, + perform +)(ModalAffirmPurchase); diff --git a/src/renderer/modal/modalConfirmTransaction/index.js b/src/renderer/modal/modalConfirmTransaction/index.js index fa9f1a520..b29b86285 100644 --- a/src/renderer/modal/modalConfirmTransaction/index.js +++ b/src/renderer/modal/modalConfirmTransaction/index.js @@ -7,4 +7,7 @@ const perform = dispatch => ({ sendToAddress: (address, amount) => dispatch(doSendDraftTransaction(address, amount)), }); -export default connect(null, perform)(ModalConfirmTransaction); +export default connect( + null, + perform +)(ModalConfirmTransaction); diff --git a/src/renderer/modal/modalError/index.js b/src/renderer/modal/modalError/index.js index e8c07bc17..b37d57a88 100644 --- a/src/renderer/modal/modalError/index.js +++ b/src/renderer/modal/modalError/index.js @@ -6,4 +6,7 @@ const perform = dispatch => ({ closeModal: () => dispatch(doHideNotification()), }); -export default connect(null, perform)(ModalError); +export default connect( + null, + perform +)(ModalError); diff --git a/src/renderer/modal/modalFileTimeout/index.js b/src/renderer/modal/modalFileTimeout/index.js index 04fdec82b..cff75810a 100644 --- a/src/renderer/modal/modalFileTimeout/index.js +++ b/src/renderer/modal/modalFileTimeout/index.js @@ -10,4 +10,7 @@ const perform = dispatch => ({ closeModal: () => dispatch(doHideNotification()), }); -export default connect(select, perform)(ModalFileTimeout); +export default connect( + select, + perform +)(ModalFileTimeout); diff --git a/src/renderer/modal/modalFirstSubscription/index.js b/src/renderer/modal/modalFirstSubscription/index.js index 5831c1094..f3fd08438 100644 --- a/src/renderer/modal/modalFirstSubscription/index.js +++ b/src/renderer/modal/modalFirstSubscription/index.js @@ -8,4 +8,7 @@ const perform = dispatch => () => ({ navigate: path => dispatch(doNavigate(path)), }); -export default connect(null, perform)(ModalFirstSubscription); +export default connect( + null, + perform +)(ModalFirstSubscription); diff --git a/src/renderer/modal/modalIncompatibleDaemon/index.js b/src/renderer/modal/modalIncompatibleDaemon/index.js index 8feed2ca7..a676fdd88 100644 --- a/src/renderer/modal/modalIncompatibleDaemon/index.js +++ b/src/renderer/modal/modalIncompatibleDaemon/index.js @@ -7,4 +7,7 @@ const perform = dispatch => ({ quitAnyDaemon: () => dispatch(doQuitAnyDaemon()), }); -export default connect(null, perform)(ModalIncompatibleDaemon); +export default connect( + null, + perform +)(ModalIncompatibleDaemon); diff --git a/src/renderer/modal/modalOpenExternalLink/index.js b/src/renderer/modal/modalOpenExternalLink/index.js index 2703b100e..4ff2f30cb 100644 --- a/src/renderer/modal/modalOpenExternalLink/index.js +++ b/src/renderer/modal/modalOpenExternalLink/index.js @@ -6,4 +6,7 @@ const perform = dispatch => ({ closeModal: () => dispatch(doHideNotification()), }); -export default connect(null, perform)(ModalOpenExternalLink); +export default connect( + null, + perform +)(ModalOpenExternalLink); diff --git a/src/renderer/modal/modalRemoveFile/index.js b/src/renderer/modal/modalRemoveFile/index.js index b6f7780fe..363772dcb 100644 --- a/src/renderer/modal/modalRemoveFile/index.js +++ b/src/renderer/modal/modalRemoveFile/index.js @@ -21,4 +21,7 @@ const perform = dispatch => ({ }, }); -export default connect(select, perform)(ModalRemoveFile); +export default connect( + select, + perform +)(ModalRemoveFile); diff --git a/src/renderer/modal/modalRevokeClaim/index.js b/src/renderer/modal/modalRevokeClaim/index.js index a79039529..b99715697 100644 --- a/src/renderer/modal/modalRevokeClaim/index.js +++ b/src/renderer/modal/modalRevokeClaim/index.js @@ -11,4 +11,7 @@ const perform = dispatch => ({ abandonClaim: (txid, nout) => dispatch(doAbandonClaim(txid, nout)), }); -export default connect(select, perform)(ModalRevokeClaim); +export default connect( + select, + perform +)(ModalRevokeClaim); diff --git a/src/renderer/modal/modalRewardApprovalRequired/index.js b/src/renderer/modal/modalRewardApprovalRequired/index.js index 88efa5355..af651ca2d 100644 --- a/src/renderer/modal/modalRewardApprovalRequired/index.js +++ b/src/renderer/modal/modalRewardApprovalRequired/index.js @@ -11,4 +11,7 @@ const perform = dispatch => ({ closeModal: () => dispatch(doHideNotification()), }); -export default connect(null, perform)(ModalRewardApprovalRequired); +export default connect( + null, + perform +)(ModalRewardApprovalRequired); diff --git a/src/renderer/modal/modalSendTip/index.js b/src/renderer/modal/modalSendTip/index.js index f6c67325d..b830c384e 100644 --- a/src/renderer/modal/modalSendTip/index.js +++ b/src/renderer/modal/modalSendTip/index.js @@ -6,4 +6,7 @@ const perform = dispatch => ({ closeModal: () => dispatch(doHideNotification()), }); -export default connect(null, perform)(ModalSendTip); +export default connect( + null, + perform +)(ModalSendTip); diff --git a/src/renderer/modal/modalWelcome/index.js b/src/renderer/modal/modalWelcome/index.js index 201af1904..2e030ef9e 100644 --- a/src/renderer/modal/modalWelcome/index.js +++ b/src/renderer/modal/modalWelcome/index.js @@ -11,4 +11,7 @@ const perform = dispatch => () => ({ }, }); -export default connect(null, perform)(ModalWelcome); +export default connect( + null, + perform +)(ModalWelcome); diff --git a/src/renderer/page/report/index.js b/src/renderer/page/report/index.js index a43d54529..0fed73d36 100644 --- a/src/renderer/page/report/index.js +++ b/src/renderer/page/report/index.js @@ -1,4 +1,3 @@ -import { connect } from 'react-redux'; import ReportPage from './view'; -export default connect(null, null)(ReportPage); +export default ReportPage; diff --git a/src/renderer/page/show/index.js b/src/renderer/page/show/index.js index 122c6774a..9f67c04b1 100644 --- a/src/renderer/page/show/index.js +++ b/src/renderer/page/show/index.js @@ -17,4 +17,7 @@ const perform = dispatch => ({ resolveUri: uri => dispatch(doResolveUri(uri)), }); -export default connect(select, perform)(ShowPage); +export default connect( + select, + perform +)(ShowPage); diff --git a/src/renderer/page/transactionHistory/index.js b/src/renderer/page/transactionHistory/index.js index b31414474..33af4fc09 100644 --- a/src/renderer/page/transactionHistory/index.js +++ b/src/renderer/page/transactionHistory/index.js @@ -15,4 +15,7 @@ const perform = dispatch => ({ fetchTransactions: () => dispatch(doFetchTransactions()), }); -export default connect(select, perform)(TransactionHistoryPage); +export default connect( + select, + perform +)(TransactionHistoryPage); diff --git a/src/renderer/page/userHistory/index.js b/src/renderer/page/userHistory/index.js index 650e45760..d55e88a48 100644 --- a/src/renderer/page/userHistory/index.js +++ b/src/renderer/page/userHistory/index.js @@ -1,4 +1,3 @@ -import { connect } from 'react-redux'; import UserHistoryPage from './view'; -export default connect(null, null)(UserHistoryPage); +export default UserHistoryPage;