This repository has been archived on 2023-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/app/assets/javascripts/components/reducers/meta.jsx
2016-09-12 19:20:55 +02:00

14 lines
360 B
JavaScript

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