zcash-grant-system/frontend/client/store/reducers.tsx

26 lines
639 B
TypeScript
Raw Normal View History

2018-09-10 09:55:26 -07:00
import { combineReducers } from 'redux';
import web3, { Web3State, INITIAL_STATE as web3InitialState } from 'modules/web3';
import proposal, {
ProposalState,
INITIAL_STATE as proposalInitialState,
} from 'modules/proposals';
import create, { CreateState, INITIAL_STATE as createInitialState } from 'modules/create';
2018-09-10 09:55:26 -07:00
export interface AppState {
proposal: ProposalState;
web3: Web3State;
create: CreateState;
2018-09-10 09:55:26 -07:00
}
export const combineInitialState: AppState = {
2018-09-10 09:55:26 -07:00
proposal: proposalInitialState,
web3: web3InitialState,
create: createInitialState,
2018-09-10 09:55:26 -07:00
};
export default combineReducers<AppState>({
proposal,
web3,
create,
2018-09-10 09:55:26 -07:00
});