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

ProfileContainer.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 { getProfileInfo } from 'services/graphQLQuery';
4
import ProfileComponent from 'components/ProfileComponent';
5
6
export default compose(
7
  graphql(getProfileInfo, {
8
    name: 'profile'
9
  }),
10
  branch(
11
    ({ profile }) => profile.loading || profile.errors || !profile,
12
    renderComponent(renderNothing())
13
  )
14
)(ProfileComponent);
15