Skip to content

Instantly share code, notes, and snippets.

@alexytiger
Last active July 16, 2019 18:43
Show Gist options
  • Save alexytiger/5aa1e4117f2d4f53d659693b2809d9bd to your computer and use it in GitHub Desktop.
Save alexytiger/5aa1e4117f2d4f53d659693b2809d9bd to your computer and use it in GitHub Desktop.
import * as fromRoot from '../../../core/store/reducers';
import * as fromIpfsUpload from './ipfs-upload.reducer';
import * as fromProducts from './purchase-contract.reducer';
export interface PurchaseContractState {
ipfsUpload: fromIpfsUpload.State;
products: fromProducts.State
}
export interface AppState extends fromRoot.AppState {
purchaseContract: PurchaseContractState;
}
export function reducers(state: PurchaseContractState | undefined, action: Action) {
return combineReducers({
ipfsUpload: fromIpfsUpload.reducer,
products: fromProducts.reducer
})(state, action);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment