From 6bd41d7355f96d6f28716e331cfeb873a3d6a467 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 26 Jul 2017 19:06:59 +0900 Subject: [PATCH] ing --- .../@overflow/member/redux/reducer/signIn.ts | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/src/ts/@overflow/member/redux/reducer/signIn.ts b/src/ts/@overflow/member/redux/reducer/signIn.ts index 078b8b1..b17099f 100644 --- a/src/ts/@overflow/member/redux/reducer/signIn.ts +++ b/src/ts/@overflow/member/redux/reducer/signIn.ts @@ -1,22 +1,10 @@ import Action from '@overflow/commons/redux/Action'; import { ReducersMapObject } from 'redux'; -import createReducer from '@overflow/commons/redux/createReducer'; import Member from '@overflow/member/api/model/Member'; import * as SigninActionTypes from '../action/signIn'; import SigninState, { defaultState as signinDefaultState } from '../state/SignIn'; -// export type reducer = (state: SigninState, action: Action) => SigninState; - -// export const reducer: reducer = createReducer(signinDefaultState, { - // [SigninActionTypes.REQUEST_SUCCESS]: (state: SigninState = signinDefaultState, action: Action): SigninState => { - // return state; - // }, - // [SigninActionTypes.REQUEST_FAILURE]: (state: SigninState = signinDefaultState, action: Action): SigninState => { - // return state; - // }, -// }); - const reducer: ReducersMapObject = { [SigninActionTypes.REQUEST_SUCCESS]: (state: SigninState = signinDefaultState, action: Action): SigninState => { return state; @@ -27,25 +15,3 @@ const reducer: ReducersMapObject = { }; export default reducer; - -// export const reducer: reducer = (state: SigninState = signinDefaultState, action: Action): SigninState => { -// switch (action.type) { -// case SigninActionTypes.REQUEST_SUCCESS: -// { -// let member = (>action).payload; - -// const aaa: SigninState = { -// ...state, -// isAuthenticated: true, -// }; - -// return aaa; -// } -// case SigninActionTypes.REQUEST_FAILURE: -// { -// return state; -// } -// default: -// return state; -// } -// };