Grabbed dndbeyond's source code
``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import * as actionTypes from '../actions/characterEnv/actionTypes';
|
||||
import { CharacterLoadingStatusEnum } from './constants';
|
||||
export const initialEnvState = {
|
||||
context: null,
|
||||
loadingStatus: CharacterLoadingStatusEnum.NOT_INITIALIZED,
|
||||
};
|
||||
function characterEnv(state = initialEnvState, action) {
|
||||
switch (action.type) {
|
||||
case actionTypes.DATA_SET:
|
||||
return Object.assign(Object.assign({}, state), action.payload);
|
||||
default:
|
||||
// not implemented
|
||||
}
|
||||
return state;
|
||||
}
|
||||
export default characterEnv;
|
||||
Reference in New Issue
Block a user