Просмотр исходного кода

standardization dropdown component

itizawa 6 лет назад
Родитель
Сommit
6fb4ea1fa7

+ 3 - 3
src/client/js/components/Admin/Customize/CustomizeFunctionDropdownOption.jsx → src/client/js/components/Admin/Common/AdminDropdownOption.jsx

@@ -6,7 +6,7 @@ import FormGroup from 'react-bootstrap/es/FormGroup';
 import FormControl from 'react-bootstrap/es/FormControl';
 import FormControl from 'react-bootstrap/es/FormControl';
 import ControlLabel from 'react-bootstrap/es/ControlLabel';
 import ControlLabel from 'react-bootstrap/es/ControlLabel';
 
 
-class CustomizeFunctionDropdownOption extends React.PureComponent {
+class AdminDropdownOption extends React.PureComponent {
 
 
   render() {
   render() {
     return (
     return (
@@ -33,7 +33,7 @@ class CustomizeFunctionDropdownOption extends React.PureComponent {
 
 
 }
 }
 
 
-CustomizeFunctionDropdownOption.propTypes = {
+AdminDropdownOption.propTypes = {
   t: PropTypes.func.isRequired, // i18next
   t: PropTypes.func.isRequired, // i18next
 
 
   value: PropTypes.number.isRequired,
   value: PropTypes.number.isRequired,
@@ -43,4 +43,4 @@ CustomizeFunctionDropdownOption.propTypes = {
   children: PropTypes.object.isRequired,
   children: PropTypes.object.isRequired,
 };
 };
 
 
-export default withTranslation()(CustomizeFunctionDropdownOption);
+export default withTranslation()(AdminDropdownOption);

+ 3 - 3
src/client/js/components/Admin/Customize/CustomizeFunctionSetting.jsx

@@ -12,7 +12,7 @@ import AppContainer from '../../../services/AppContainer';
 import AdminCustomizeContainer from '../../../services/AdminCustomizeContainer';
 import AdminCustomizeContainer from '../../../services/AdminCustomizeContainer';
 import AdminUpdateButtonRow from '../Common/AdminUpdateButtonRow';
 import AdminUpdateButtonRow from '../Common/AdminUpdateButtonRow';
 import CustomizeFunctionOption from './CustomizeFunctionOption';
 import CustomizeFunctionOption from './CustomizeFunctionOption';
-import CustomizeFunctionDropdownOption from './CustomizeFunctionDropdownOption';
+import AdminDropdownOption from '../Common/AdminDropdownOption';
 
 
 const logger = loggerFactory('growi:importer');
 const logger = loggerFactory('growi:importer');
 
 
@@ -83,7 +83,7 @@ class CustomizeBehaviorSetting extends React.Component {
           </p>
           </p>
         </CustomizeFunctionOption>
         </CustomizeFunctionOption>
 
 
-        <CustomizeFunctionDropdownOption
+        <AdminDropdownOption
           label={t('customize_page.recent_created__n_draft_num_desc')}
           label={t('customize_page.recent_created__n_draft_num_desc')}
           value={adminCustomizeContainer.state.currentRecentCreatedLimit}
           value={adminCustomizeContainer.state.currentRecentCreatedLimit}
           onChange={(value) => { adminCustomizeContainer.switchRecentCreatedLimit(value) }}
           onChange={(value) => { adminCustomizeContainer.switchRecentCreatedLimit(value) }}
@@ -92,7 +92,7 @@ class CustomizeBehaviorSetting extends React.Component {
           <p className="help-block">
           <p className="help-block">
             { t('customize_page.recently_created_n_draft_num_desc') }
             { t('customize_page.recently_created_n_draft_num_desc') }
           </p>
           </p>
-        </CustomizeFunctionDropdownOption>
+        </AdminDropdownOption>
 
 
         <AdminUpdateButtonRow onClick={this.onClickSubmit} />
         <AdminUpdateButtonRow onClick={this.onClickSubmit} />
       </React.Fragment>
       </React.Fragment>