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,17 @@
|
||||
import * as actionTypes from '../actions/syncTransaction/actionTypes';
|
||||
export const initialState = {
|
||||
active: false,
|
||||
initiator: null,
|
||||
};
|
||||
function syncTransaction(state = initialState, action) {
|
||||
switch (action.type) {
|
||||
case actionTypes.ACTIVATE:
|
||||
return Object.assign(Object.assign({}, state), { active: true, initiator: action.payload.initiator });
|
||||
case actionTypes.DEACTIVATE:
|
||||
return Object.assign(Object.assign({}, state), { active: false, initiator: null });
|
||||
default:
|
||||
// not implemented
|
||||
}
|
||||
return state;
|
||||
}
|
||||
export default syncTransaction;
|
||||
Reference in New Issue
Block a user