| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 14 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 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 |