1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-12 13:48:21 +09:00
mastodon/app/assets/javascripts/components/reducers/meta.jsx

14 lines
360 B
React
Raw Normal View History

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