You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
359 B

  1. import { SET_ACCESS_TOKEN } from '../actions/meta';
  2. import Immutable from 'immutable';
  3. const initialState = Immutable.Map();
  4. export default function meta(state = initialState, action) {
  5. switch(action.type) {
  6. case SET_ACCESS_TOKEN:
  7. return state.set('access_token', action.token);
  8. default:
  9. return state;
  10. }
  11. }