ing
This commit is contained in:
parent
f1390a08d2
commit
74df2642a9
|
@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user