summaryrefslogtreecommitdiff
path: root/frontend/app/views/site/site.reducer.js
blob: b40d6f11f9ab615478c7cd842a9b724a41017c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import * as types from 'app/types'

const initialState = {
  'siteTitle': 'swimmer',
}

export default function graphReducer(state = initialState, action) {
  // console.log(action.type, action)
  switch (action.type) {
    case types.site.set_site_title:
      return {
        ...state,
        siteTitle: action.payload,
      }

    default:
      return state
  }
}