settingReducer.js 589 Bytes
'use strict';
import InitialState from './settingInitialState';
import Immutable, {Map} from 'immutable';

const {

    SETTING_SAVE_REQUEST,
    SETTING_SAVE_SUCCESS,
    SETTING_SAVE_FAILURE,

} = require('../../constants/actionTypes').default;

const initialState = new InitialState;
export default function settingReducer(state = initialState, action) {
    if (!(state instanceof InitialState)) return initialState.merge(state);

    // switch (action.type) {
    //     case SETTING_SAVE_REQUEST:
    //
    //         break;
    //     default:
    //
    // }

    return state;
}