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

src/containers/FeedContainer.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 14
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
c 1
b 0
f 0
nc 1
dl 0
loc 14
rs 10
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A FeedContainer.js ➔ ??? 0 1 1
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