ing
This commit is contained in:
parent
1d0ac6b572
commit
93647f176a
|
@ -14,7 +14,7 @@ import {
|
|||
ActionType as AuthActionType,
|
||||
} 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) {
|
||||
case MemberActionType.Signin: {
|
||||
return {
|
||||
|
|
|
@ -7,7 +7,6 @@ import { DomainMember } from '@overflow/commons-typescript/model/domain';
|
|||
export enum ActionType {
|
||||
SigninSuccess = '[auth.auth] SigninSuccess',
|
||||
SigninFailure = '[auth.auth] SigninFailure',
|
||||
SigninRedirect = '[auth.auth] SigninRedirect',
|
||||
|
||||
SigninCookieSuccess = '[auth.auth] SigninCookieSuccess',
|
||||
SigninCookieFailure = '[auth.auth] SigninCookieFailure',
|
||||
|
@ -28,11 +27,6 @@ export class SigninFailure implements Action {
|
|||
constructor(public payload: RESTClientError) {}
|
||||
}
|
||||
|
||||
export class SigninRedirect implements Action {
|
||||
readonly type = ActionType.SigninRedirect;
|
||||
constructor(public payload: string) {}
|
||||
}
|
||||
|
||||
export class SigninCookieSuccess implements Action {
|
||||
readonly type = ActionType.SigninCookieSuccess;
|
||||
|
||||
|
@ -58,7 +52,6 @@ export class SignoutFailure implements Action {
|
|||
export type Actions =
|
||||
| SigninSuccess
|
||||
| SigninFailure
|
||||
| SigninRedirect
|
||||
| SigninCookieSuccess
|
||||
| SigninCookieFailure
|
||||
| SignoutSuccess
|
||||
|
|
Loading…
Reference in New Issue
Block a user