This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2016-08-31 07:15:12 -07:00
|
|
|
import { ACCESS_TOKEN_SET } from '../actions/meta';
|
2016-08-26 10:12:19 -07:00
|
|
|
import Immutable from 'immutable';
|
|
|
|
|
|
|
|
const initialState = Immutable.Map();
|
|
|
|
|
|
|
|
export default function meta(state = initialState, action) {
|
|
|
|
switch(action.type) {
|
2016-08-31 07:15:12 -07:00
|
|
|
case ACCESS_TOKEN_SET:
|
2016-08-26 10:12:19 -07:00
|
|
|
return state.set('access_token', action.token);
|
|
|
|
default:
|
|
|
|
return state;
|
|
|
|
}
|
2016-09-12 10:20:55 -07:00
|
|
|
};
|