This commit is contained in:
crusader 2018-05-28 17:28:56 +09:00
parent 1d0ac6b572
commit 93647f176a
2 changed files with 1 additions and 8 deletions

View File

@ -14,7 +14,7 @@ import {
ActionType as AuthActionType, ActionType as AuthActionType,
} from '@overflow/shared/auth/store/container/auth'; } from '@overflow/shared/auth/store/container/auth';
export function reducer(state = initialState, action: MemberActions | AuthActions): State { export function reducer(state: State = initialState, action: MemberActions | AuthActions): State {
switch (action.type) { switch (action.type) {
case MemberActionType.Signin: { case MemberActionType.Signin: {
return { return {

View File

@ -7,7 +7,6 @@ import { DomainMember } from '@overflow/commons-typescript/model/domain';
export enum ActionType { export enum ActionType {
SigninSuccess = '[auth.auth] SigninSuccess', SigninSuccess = '[auth.auth] SigninSuccess',
SigninFailure = '[auth.auth] SigninFailure', SigninFailure = '[auth.auth] SigninFailure',
SigninRedirect = '[auth.auth] SigninRedirect',
SigninCookieSuccess = '[auth.auth] SigninCookieSuccess', SigninCookieSuccess = '[auth.auth] SigninCookieSuccess',
SigninCookieFailure = '[auth.auth] SigninCookieFailure', SigninCookieFailure = '[auth.auth] SigninCookieFailure',
@ -28,11 +27,6 @@ export class SigninFailure implements Action {
constructor(public payload: RESTClientError) {} constructor(public payload: RESTClientError) {}
} }
export class SigninRedirect implements Action {
readonly type = ActionType.SigninRedirect;
constructor(public payload: string) {}
}
export class SigninCookieSuccess implements Action { export class SigninCookieSuccess implements Action {
readonly type = ActionType.SigninCookieSuccess; readonly type = ActionType.SigninCookieSuccess;
@ -58,7 +52,6 @@ export class SignoutFailure implements Action {
export type Actions = export type Actions =
| SigninSuccess | SigninSuccess
| SigninFailure | SigninFailure
| SigninRedirect
| SigninCookieSuccess | SigninCookieSuccess
| SigninCookieFailure | SigninCookieFailure
| SignoutSuccess | SignoutSuccess