Last active
February 18, 2020 01:53
-
-
Save alexytiger/27c745d7756f2cffcccb4b184ab4664c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {createSelector, createFeatureSelector, Action, combineReducers} | |
from '@ngrx/store'; | |
import * as fromRoot from '../../../core/store/reducers'; | |
import * as fromIpfs from './ipfs-product-image.reducer'; | |
import * as fromProducts from './purchase-contract.reducer'; | |
export interface PurchaseContractState { | |
ipfs: fromIpfs.State; | |
products: fromProducts.State; | |
} | |
export interface AppState extends fromRoot.AppState { | |
purchaseContract: PurchaseContractState; | |
} | |
export function reducers(state: PurchaseContractState | undefined, action: Action) { | |
return combineReducers({ | |
ipfs: fromIpfs.reducer, | |
products: fromProducts.reducer | |
})(state, action); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment