forked from ripple/explorer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrootReducer.js
More file actions
52 lines (49 loc) · 1.7 KB
/
rootReducer.js
File metadata and controls
52 lines (49 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { combineReducers } from 'redux'
import appReducer, { initialState as appState } from './containers/App/reducer'
import ledgerReducer, {
initialState as ledgerState,
} from './containers/Ledger/reducer'
import accountHeaderReducer, {
initialState as accountHeaderState,
} from './containers/Accounts/AccountHeader/reducer'
import accountTransactionsReducer, {
initialState as accountTransactionsState,
} from './containers/Accounts/AccountTransactionsTable/reducer'
import transactionReducer, {
initialState as transactionState,
} from './containers/Transactions/reducer'
import validatorReducer, {
initialState as validatorState,
} from './containers/Validators/reducer'
import payStringReducer, {
initialState as payStringState,
} from './containers/PayStrings/PayStringMappingsTable/reducer'
import tokenHeaderReducer, {
initialState as tokenHeaderState,
} from './containers/Token/TokenHeader/reducer'
import accountNFTReducer, {
initialState as accountNFTsState,
} from './containers/Accounts/AccountNFTTable/reducer'
export const initialState = {
app: appState,
accountHeader: accountHeaderState,
accountNFTs: accountNFTsState,
accountTransactions: accountTransactionsState,
ledger: ledgerState,
transaction: transactionState,
validator: validatorState,
payStringData: payStringState,
tokenHeader: tokenHeaderState,
}
const rootReducer = combineReducers({
app: appReducer,
accountHeader: accountHeaderReducer,
accountNFTs: accountNFTReducer,
accountTransactions: accountTransactionsReducer,
ledger: ledgerReducer,
transaction: transactionReducer,
validator: validatorReducer,
payStringData: payStringReducer,
tokenHeader: tokenHeaderReducer,
})
export default rootReducer