mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 16:18:07 +01:00
13 lines
360 B
JavaScript
13 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;
|
|
}
|
|
};
|