mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-30 20:06:20 +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;
|
||
|
};
|