Completed
Push — master ( 99cfb1...822908 )
by Junior
10s
created

FeedContainer.js ➔ ???   A

Complexity

Conditions 1
Paths 3

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 3
nop 1
dl 0
loc 1
rs 10
1
import { compose, branch, renderComponent, renderNothing } from 'recompose';
2
import { graphql } from 'react-apollo';
3
import { getGithubActivity } from 'services/graphQLQuery';
4
import MainFeedComponent from 'components/MainFeedComponent';
5
6
export default compose(
7
  graphql(getGithubActivity, {
8
    name: 'activity'
9
  }),
10
  branch(
11
    ({ activity }) => activity.loading || activity.errors || !activity,
12
    renderComponent(renderNothing())
13
  )
14
)(MainFeedComponent);
15