Sha256: 8ceeac11b8ec50146f79a17a6563a1d63703899ce2a8f144498f97831d50c3c8
Contents?: true
Size: 550 Bytes
Versions: 103
Compression:
Stored size: 550 Bytes
Contents
import Immutable from 'seamless-immutable'; import { INSIGHTS_SYNC_SETTING_SET, INSIGHTS_SYNC_SETTINGS_GET_SUCCESS, } from './InsightsSettingsConstants'; const initialState = Immutable({ insightsSyncEnabled: false, }); export default (state = initialState, action) => { const { payload: { settings } = {} } = action; switch (action.type) { case INSIGHTS_SYNC_SETTINGS_GET_SUCCESS: case INSIGHTS_SYNC_SETTING_SET: return state.merge({ ...state, ...settings, }); default: return state; } };
Version data entries
103 entries across 103 versions & 1 rubygems