scinote-web/app/javascript/packs/shared/reducers/LeaveTeamReducer.js
2017-09-01 17:10:43 +02:00

11 lines
281 B
JavaScript

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