|
|
|
@ -96,20 +96,22 @@ export const authReducer = createReducer<AuthState, AuthAction>(initialState)
|
|
|
|
|
draft.isLogin = false; |
|
|
|
|
draft.user = undefined; |
|
|
|
|
}) |
|
|
|
|
) |
|
|
|
|
.handleAction(pwCheckAction.success, (state, action) => |
|
|
|
|
produce(state, draft => { |
|
|
|
|
const data: UserPwCheck = action.payload; |
|
|
|
|
draft.UserPwCheck = data; |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
export const mypageReducer = createReducer<UserPageState, AuthAction>( |
|
|
|
|
initResponseUserPageData |
|
|
|
|
).handleAction(userPageAction.success, (state, action) => |
|
|
|
|
) |
|
|
|
|
.handleAction(userPageAction.success, (state, action) => |
|
|
|
|
produce(state, draft => { |
|
|
|
|
const data: UserPageData = action.payload; |
|
|
|
|
draft.userPage = data; |
|
|
|
|
}) |
|
|
|
|
) |
|
|
|
|
.handleAction(pwCheckAction.success, (state, action) => |
|
|
|
|
produce(state, draft => { |
|
|
|
|
const data = action.payload; |
|
|
|
|
draft.result = data; |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
|
export const userPwReducer = createReducer<UserPwState, AuthAction>( |
|
|
|
|
initResponseUserPwPageData |
|
|
|
|