about summary refs log tree commit diff
path: root/app/assets/javascripts/components/reducers/meta.jsx
blob: 71a14dbd3fad9ac7d09d6dbcdf5080c63543f8ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { ACCESS_TOKEN_SET }         from '../actions/meta';
import Immutable                    from 'immutable';

const initialState = Immutable.Map();

export default function meta(state = initialState, action) {
  switch(action.type) {
    case ACCESS_TOKEN_SET:
      return state.set('access_token', action.token);
    default:
      return state;
  }
};