mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-30 11:56:22 +08:00
9 lines
245 B
JavaScript
9 lines
245 B
JavaScript
import { SET_CURRENT_TEAM } from '../actions/types';
|
|
|
|
export const setCurrentTeam = (state = {}, action) => {
|
|
if (action.type === SET_CURRENT_TEAM) {
|
|
return Object.assign({}, state, { currentTeam: action.payload });
|
|
}
|
|
return state;
|
|
};
|