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

View File

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