UNPKG

fb-test-module

Version:

How to use: ``` import {store, getStore} from 'fb-test-module'; conf.DialogramApi = "API_BASE_URL"; conf.Platform = "mobile"; //use "web" if you are on webApp getStore(); //Inject store in your provider ``` and you'r readyt to go. # Base ## Act

17 lines (15 loc) 480 B
import { fromJS } from 'immutable'; import { ActionType } from '../BaseModel'; import { Status } from '../BaseType'; import { VIDEO_ENTITY } from './Type'; import { baseReducer } from '../BaseReducer'; const initialState = fromJS({ status: Status.Default, error: undefined }); export const videoReducer = (state = initialState, action) => { switch (action.type) { default: return baseReducer(state, action, VIDEO_ENTITY); }; }