Format changes with prettier

This commit is contained in:
liamcardenas 2018-03-15 01:35:47 -07:00
parent 7828753d49
commit d8cd9497cc
3 changed files with 28 additions and 23 deletions

View file

@ -32,8 +32,7 @@ const perform = dispatch => ({
navigate: (path, params) => dispatch(doNavigate(path, params)), navigate: (path, params) => dispatch(doNavigate(path, params)),
fetchFileInfo: uri => dispatch(doFetchFileInfo(uri)), fetchFileInfo: uri => dispatch(doFetchFileInfo(uri)),
fetchCostInfo: uri => dispatch(doFetchCostInfoForUri(uri)), fetchCostInfo: uri => dispatch(doFetchCostInfoForUri(uri)),
checkSubscription: (subscription) => checkSubscription: subscription => dispatch(doCheckSubscription(subscription)),
dispatch(doCheckSubscription(subscription)),
}); });
export default connect(select, perform)(FilePage); export default connect(select, perform)(FilePage);

View file

@ -42,8 +42,7 @@ class FilePage extends React.PureComponent {
.map(subscription => subscription.channelName) .map(subscription => subscription.channelName)
.indexOf(props.claim.channel_name) !== -1 .indexOf(props.claim.channel_name) !== -1
) { ) {
props.checkSubscription( props.checkSubscription({
{
channelName: props.claim.channel_name, channelName: props.claim.channel_name,
uri: buildURI( uri: buildURI(
{ {

View file

@ -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({ dispatch({
type: ACTIONS.CHECK_SUBSCRIPTION_STARTED, type: ACTIONS.CHECK_SUBSCRIPTION_STARTED,
data: subscription, data: subscription,
@ -90,16 +92,21 @@ export const doCheckSubscription = (subscription: Subscription, notify?: boolean
}; };
} }
dispatch(setSubscriptionLatest({ dispatch(
setSubscriptionLatest(
{
channelName: claimsInChannel[0].channel_name, channelName: claimsInChannel[0].channel_name,
uri: buildURI( uri: buildURI(
{ channelName: claimsInChannel[0].channel_name, claimId: claimsInChannel[0].claim_id }, { channelName: claimsInChannel[0].channel_name, claimId: claimsInChannel[0].claim_id },
false false
) ),
}, buildURI( },
buildURI(
{ contentName: claimsInChannel[0].name, claimId: claimsInChannel[0].claim_id }, { contentName: claimsInChannel[0].name, claimId: claimsInChannel[0].claim_id },
false false
))); )
)
);
dispatch({ dispatch({
type: ACTIONS.CHECK_SUBSCRIPTION_COMPLETED, type: ACTIONS.CHECK_SUBSCRIPTION_COMPLETED,