From d8cd9497ccf1d6a5c2bdd2a80f61683940aa3304 Mon Sep 17 00:00:00 2001 From: liamcardenas Date: Thu, 15 Mar 2018 01:35:47 -0700 Subject: [PATCH] Format changes with prettier --- src/renderer/page/file/index.js | 3 +-- src/renderer/page/file/view.jsx | 21 ++++++++-------- src/renderer/redux/actions/subscriptions.js | 27 +++++++++++++-------- 3 files changed, 28 insertions(+), 23 deletions(-) diff --git a/src/renderer/page/file/index.js b/src/renderer/page/file/index.js index 5116ebd5b..f8e515222 100644 --- a/src/renderer/page/file/index.js +++ b/src/renderer/page/file/index.js @@ -32,8 +32,7 @@ const perform = dispatch => ({ navigate: (path, params) => dispatch(doNavigate(path, params)), fetchFileInfo: uri => dispatch(doFetchFileInfo(uri)), fetchCostInfo: uri => dispatch(doFetchCostInfoForUri(uri)), - checkSubscription: (subscription) => - dispatch(doCheckSubscription(subscription)), + checkSubscription: subscription => dispatch(doCheckSubscription(subscription)), }); export default connect(select, perform)(FilePage); diff --git a/src/renderer/page/file/view.jsx b/src/renderer/page/file/view.jsx index 5ca16b600..c7c29c194 100644 --- a/src/renderer/page/file/view.jsx +++ b/src/renderer/page/file/view.jsx @@ -42,17 +42,16 @@ class FilePage extends React.PureComponent { .map(subscription => subscription.channelName) .indexOf(props.claim.channel_name) !== -1 ) { - props.checkSubscription( - { - channelName: props.claim.channel_name, - uri: buildURI( - { - contentName: props.claim.channel_name, - claimId: props.claim.value.publisherSignature.certificateId, - }, - false - ), - }); + props.checkSubscription({ + channelName: props.claim.channel_name, + uri: buildURI( + { + contentName: props.claim.channel_name, + claimId: props.claim.value.publisherSignature.certificateId, + }, + false + ), + }); } } diff --git a/src/renderer/redux/actions/subscriptions.js b/src/renderer/redux/actions/subscriptions.js index 2233363a1..8a390987b 100644 --- a/src/renderer/redux/actions/subscriptions.js +++ b/src/renderer/redux/actions/subscriptions.js @@ -38,7 +38,9 @@ export const doCheckSubscriptions = () => ( }); }; -export const doCheckSubscription = (subscription: Subscription, notify?: boolean) => (dispatch: Dispatch) => { +export const doCheckSubscription = (subscription: Subscription, notify?: boolean) => ( + dispatch: Dispatch +) => { dispatch({ type: ACTIONS.CHECK_SUBSCRIPTION_STARTED, data: subscription, @@ -90,16 +92,21 @@ export const doCheckSubscription = (subscription: Subscription, notify?: boolean }; } - dispatch(setSubscriptionLatest({ - channelName: claimsInChannel[0].channel_name, - uri: buildURI( - { channelName: claimsInChannel[0].channel_name, claimId: claimsInChannel[0].claim_id }, - false + dispatch( + setSubscriptionLatest( + { + channelName: claimsInChannel[0].channel_name, + uri: buildURI( + { channelName: claimsInChannel[0].channel_name, claimId: claimsInChannel[0].claim_id }, + false + ), + }, + buildURI( + { contentName: claimsInChannel[0].name, claimId: claimsInChannel[0].claim_id }, + false + ) ) - }, buildURI( - { contentName: claimsInChannel[0].name, claimId: claimsInChannel[0].claim_id }, - false - ))); + ); dispatch({ type: ACTIONS.CHECK_SUBSCRIPTION_COMPLETED,