mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-16 21:23:20 +00:00
23 lines
424 B
JavaScript
23 lines
424 B
JavaScript
/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/
|
|
|
|
export const debugReducer = (state = {}, action) => {
|
|
const { type, payload } = action;
|
|
if (type === 'debug/toggleKitchenSink') {
|
|
return {
|
|
...state,
|
|
kitchenSink: !state.kitchenSink,
|
|
};
|
|
}
|
|
if (type === 'debug/toggleDebugLayout') {
|
|
return {
|
|
...state,
|
|
debugLayout: !state.debugLayout,
|
|
};
|
|
}
|
|
return state;
|
|
};
|