timezone.js 256B

1234567891011121314
  1. import { SET, TIMEZONE } from '../action-creator.sync.js'
  2. export function timezone (state = [], action) {
  3. switch (action.type) {
  4. case `${SET}/${TIMEZONE}`:
  5. return action.timezone
  6. default:
  7. return state
  8. }
  9. }
  10. export default timezone