member_webapp/@overflow/member/store/container/signout/signout.reducer.ts
crusader 869fcf4e72 ing
2018-05-28 14:41:56 +09:00

36 lines
555 B
TypeScript

import {
Actions,
ActionType,
} from '../../entity/member/member.action';
import {
State,
initialState,
} from './signout.state';
export function reducer(state = initialState, action: Actions): State {
switch (action.type) {
case ActionType.Signout: {
return {
pending: true,
};
}
case ActionType.SignoutSuccess: {
return {
pending: false,
};
}
case ActionType.SignoutFailure: {
return {
pending: false,
};
}
default: {
return state;
}
}
}