|
|
|
@ -2,12 +2,12 @@ import { AppAction, appActionTypes } from "../actions/app"; |
|
|
|
|
import { AppState } from "../interface"; |
|
|
|
|
|
|
|
|
|
export const appReducer = (state: AppState, action: AppAction): AppState => { |
|
|
|
|
switch (action.type) { |
|
|
|
|
case appActionTypes.setGitHubUser:{ |
|
|
|
|
return { |
|
|
|
|
...state, |
|
|
|
|
gitHubUser: action.payload |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
switch (action.type) { |
|
|
|
|
case appActionTypes.setGitHubUser:{ |
|
|
|
|
return { |
|
|
|
|
...state, |
|
|
|
|
gitHubUser: action.payload |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |