mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-11 09:53:27 +00:00
14 lines
359 B
React
14 lines
359 B
React
|
import { SET_ACCESS_TOKEN } from '../actions/meta';
|
||
|
import Immutable from 'immutable';
|
||
|
|
||
|
const initialState = Immutable.Map();
|
||
|
|
||
|
export default function meta(state = initialState, action) {
|
||
|
switch(action.type) {
|
||
|
case SET_ACCESS_TOKEN:
|
||
|
return state.set('access_token', action.token);
|
||
|
default:
|
||
|
return state;
|
||
|
}
|
||
|
}
|