mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
11 lines
281 B
JavaScript
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;
|
|
}
|