huridocs/uwazi

View on GitHub
app/react/Settings/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 ui from './uiReducer.js';

export default combineReducers({
  collection: createReducer('settings/collection', {}),
  stats: createReducer('settings/stats', {}),
  navlinksData: modelReducer('settings.navlinksData', { links: [] }),
  navlinksFormState: formReducer('settings.navlinksData'),
  form: modelReducer('account.form', { username: '', password: '' }),
  formState: formReducer('account.form'),
  settingForm: formReducer('settings.settings'),
  settings: modelReducer('settings.settings', {}),
  uiState: ui,
});