1234567891011121314151617181920212223 |
- import * as types from './types';
- const initialState = {
- auth: null
- }
- export const authReducer = (state = initialState, action) => {
- switch(action.type) {
- case types.RUN_AUTH: {
- return { ...state }
- }
- case types.RUN_AUTH_SUCCESS: {
- return { ...state }
- }
- case types.RUN_AUTH_FAIL: {
- return { ...state }
- }
- default: {
- return state;
- }
- }
- }
|