mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
14 lines
359 B
JavaScript
14 lines
359 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;
|
|
}
|
|
}
|