Passed
Pull Request — master (#114)
by Huu-Phat
04:15
created

cms/src/core/init/initStore.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 15
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
mnd 0
bc 0
fnc 1
dl 0
loc 15
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
import configureStore from 'core/state/configureStore'
2
3
export default () => {
4
  const initialState = {
5
    drawer: {
6
      open: false
7
    }
8
  }
9
10
  const store = configureStore(initialState)
11
12
  return {
13
    store
14
  }
15
}
16