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

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
  }
}