OSDN Git Service

0a0310f657aba481d881cf6b0228a5d43a0445bd
[bytom/Bytom-Dapp-Demo.git] / src / reducers / rotateReducer.js
1 export default (state, action) => {
2   switch (action.type) {
3     case "UPDATE_BILL_ASSET_BALANCES":
4       return {
5         ...state,
6         billAssetBalance: action.billAssetBalance
7       };
8     case "UPDATE_DEPOSIT_ASSET_BALANCES":
9       return {
10         ...state,
11         depositAssetBalance: action.depositAssetBalance
12       };
13     case "UPDATE_BYTOM":
14       return {
15         ...state,
16         bytom: action.bytom
17       };
18     case "UPDATE_BYTOM_CONNECTION":
19       return {
20         ...state,
21         bytomConnection: action.bytomConnection
22       };
23     default:
24       return state
25   }
26 }