scinote-web/app/javascript/packs/shared/reducers/LeaveTeamReducer.js
2017-08-25 16:07:37 +02:00

11 lines
275 B
JavaScript

import { SHOW_LEAVE_TEAM_MODAL } from "../../app/action_types";
export function showLeaveTeamModal(
state = { show: false, id: 0, teamName: "" },
action
) {
if (action.type === SHOW_LEAVE_TEAM_MODAL) {
return { ...state, ...action.payload };
}
return state;
}