huridocs/uwazi

View on GitHub
app/react/Entities/reducers/reducer.js

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
import { combineReducers } from 'redux';
import createReducer from 'app/BasicReducer';
import { modelReducer, formReducer } from 'react-redux-form';

import { manageAttachmentsReducer } from 'app/Attachments';
import uiState from './uiReducer';

export default combineReducers({
  entity: manageAttachmentsReducer(createReducer('entityView/entity', {})),
  entityForm: modelReducer('entityView.entityForm'),
  entityFormState: formReducer('entityView.entityForm'),
  uiState,
});