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