Passed
Push — master ( 6fca9e...82ba0d )
by Huu-Phat
02:25 queued 10s
created

cms/src/error/containers/ErrorBoundary.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 9
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
mnd 0
bc 0
fnc 1
dl 0
loc 9
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10
1
import { connect } from 'react-redux'
2
import ErrorBoundary from 'error/components/ErrorBoundary'
3
import { getAppError } from 'core/state/app/selectors'
4
5
const mapStateToProps = state => ({
6
  reduxError: getAppError(state)
7
})
8
9
export default connect(mapStateToProps)(ErrorBoundary)
10