michaltakac/mathworldvr

View on GitHub
src/reducers/ui/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import * as ActionTypes from 'actions'

const initialState = {
  attentionBoxVisible: true,
}

export default (state = initialState, action) => {
  switch (action.type) {
    case ActionTypes.UI_ATTENTIONBOX_TOGGLE:
      return { ...state, attentionBoxVisible: !state.attentionBoxVisible }
    default: return state
  }
}