File tree Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Original file line number Diff line number Diff line change
1
+ import { combineReducers } from 'redux' ;
2
+
3
+ import ungitConfig from './ungit-config' ;
4
+ import userConfig from './user-config' ;
5
+ import versions from './versions' ;
6
+
7
+ const config = combineReducers ( {
8
+ ungitConfig,
9
+ userConfig,
10
+ versions
11
+ } ) ;
12
+
13
+ export default config ;
Original file line number Diff line number Diff line change 1
1
import { combineReducers } from 'redux' ;
2
2
3
3
import path from './path' ;
4
- import ungitConfig from './ungit-config' ;
5
- import userConfig from './user-config' ;
6
- import versions from './versions' ;
7
-
4
+ import config from './config' ;
8
5
9
6
const ungitApp = combineReducers ( {
10
- ungitConfig,
11
- userConfig,
12
- versions,
7
+ config,
13
8
path
14
9
} ) ;
15
10
Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ import thunk from 'redux-thunk';
3
3
import ungitApp from './reducers' ;
4
4
5
5
const initialState = {
6
- ungitConfig : null ,
7
- userConfig : null ,
8
- versions : {
9
- gitVersion : null ,
10
- latestVersion : null
6
+ config : {
7
+ ungitConfig : null ,
8
+ userConfig : null ,
9
+ versions : {
10
+ gitVersion : null ,
11
+ latestVersion : null
12
+ }
11
13
} ,
12
14
path : {
13
15
pending : null ,
You can’t perform that action at this time.
0 commit comments