|
|
@ -1,4 +1,3 @@
|
|
|
|
import _ from 'lodash';
|
|
|
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
@ -15,11 +14,11 @@ function createMapStateToProps() {
|
|
|
|
(state) => state.settings.advancedSettings,
|
|
|
|
(state) => state.settings.advancedSettings,
|
|
|
|
(state) => state.settings.namingExamples,
|
|
|
|
(state) => state.settings.namingExamples,
|
|
|
|
createSettingsSectionSelector(SECTION),
|
|
|
|
createSettingsSectionSelector(SECTION),
|
|
|
|
(advancedSettings, examples, sectionSettings) => {
|
|
|
|
(advancedSettings, namingExamples, sectionSettings) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
advancedSettings,
|
|
|
|
advancedSettings,
|
|
|
|
examples: examples.item,
|
|
|
|
examples: namingExamples.item,
|
|
|
|
examplesPopulated: !_.isEmpty(examples.item),
|
|
|
|
examplesPopulated: namingExamples.isPopulated,
|
|
|
|
...sectionSettings
|
|
|
|
...sectionSettings
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|