studentReducer.js
443 Bytes
'use strict';
import InitialState from './studentInitialState';
import Immutable, {Map} from 'immutable';
const {
SET_PLATFORM,
} = require('../../constants/actionTypes').default;
const initialState = new InitialState;
export default function studentReducer(state=initialState, action) {
switch(action.type) {
case SET_PLATFORM: {
return state.set('platform', action.payload);
}
}
return state;
}