qtools_profiler-8.x-1.x-dev/react-app/src/ui/reducers/reportsContent.js
react-app/src/ui/reducers/reportsContent.js
const initialState = {};
function reportsContent(state = initialState, action) {
if (action.type === 'REPORT_CONTENT_SET') {
const report = action.data.report;
let newState = {
...state,
[report]: action.data.content
}
return newState;
}
return state;
}
export default reportsContent;
