events.js
343 Bytes
import { mergeDeepRight } from 'ramda'
import {
CHANGE_SCROLLVIEW
} from '../actions/events'
const events = {
scrollView: {}
}
export default (state, actions) => {
switch (actions.type) {
case CHANGE_SCROLLVIEW:
return mergeDeepRight(state, { scrollView: actions.scrollView })
default:
return state || events
}
}