This commit is contained in:
crusader 2018-03-08 16:07:48 +09:00
parent f1390a08d2
commit 74df2642a9
2 changed files with 12 additions and 12 deletions

View File

@ -19,16 +19,16 @@ export function reducer(state = initialState, action: Actions): State {
return { return {
...state, ...state,
error: null, error: null,
isPending: true, pending: true,
}; };
} }
case ActionType.SigninSuccess: { case ActionType.SigninSuccess: {
return { return {
...state, ...state,
isSignin: true, signined: true,
error: null, error: null,
isPending: false, pending: false,
member: action.payload.member, member: action.payload.member,
domain: action.payload.domain, domain: action.payload.domain,
}; };
@ -37,9 +37,9 @@ export function reducer(state = initialState, action: Actions): State {
case ActionType.SigninFailure: { case ActionType.SigninFailure: {
return { return {
...state, ...state,
isSignin: false, signined: false,
error: action.payload, error: action.payload,
isPending: false, pending: false,
member: null, member: null,
domain: null, domain: null,
}; };
@ -49,16 +49,16 @@ export function reducer(state = initialState, action: Actions): State {
return { return {
...state, ...state,
error: null, error: null,
isPending: true, pending: true,
}; };
} }
case ActionType.SigninSuccess: { case ActionType.SigninSuccess: {
return { return {
...state, ...state,
isSignin: false, signined: false,
error: null, error: null,
isPending: false, pending: false,
member: null, member: null,
domain: null, domain: null,
}; };
@ -68,7 +68,7 @@ export function reducer(state = initialState, action: Actions): State {
return { return {
...state, ...state,
error: action.payload, error: action.payload,
isPending: false, pending: false,
}; };
} }

View File

@ -16,7 +16,7 @@ export function reducer(state = initialState, action: Actions): State {
return { return {
...state, ...state,
error: null, error: null,
isPending: true, pending: true,
}; };
} }
@ -24,7 +24,7 @@ export function reducer(state = initialState, action: Actions): State {
return { return {
...state, ...state,
error: null, error: null,
isPending: false, pending: false,
member: action.payload, member: action.payload,
}; };
} }
@ -33,7 +33,7 @@ export function reducer(state = initialState, action: Actions): State {
return { return {
...state, ...state,
error: action.payload, error: action.payload,
isPending: false, pending: false,
member: null, member: null,
}; };
} }