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