1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||
|
import { APP_INIT } from "../types/SystemTypes"; |
||||
|
import { |
||||
|
SQUARE_START, |
||||
|
SQUARE_FINISHED |
||||
|
} from '../types/UserTypes'; |
||||
|
|
||||
|
function usr(state = {}, action) { |
||||
|
switch (action.type) { |
||||
|
case SQUARE_START: |
||||
|
case SQUARE_FINISHED: |
||||
|
return {...state, ...action.user}; |
||||
|
default: |
||||
|
return state; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
export const userReducer = { |
||||
|
user: usr |
||||
|
}; |
Loading…
Reference in new issue