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

create function option component

itizawa 6 лет назад
Родитель
Сommit
4f3b3304fb
1 измененных файлов с 29 добавлено и 0 удалено
  1. 29 0
      src/client/js/components/Admin/Customize/CustomizeFunctionOption.jsx

+ 29 - 0
src/client/js/components/Admin/Customize/CustomizeFunctionOption.jsx

@@ -0,0 +1,29 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import { withTranslation } from 'react-i18next';
+
+class CustomizeFunctionOption extends React.PureComponent {
+
+  render() {
+    const { t } = this.props;
+
+    return (
+      <div>
+        <label htmlFor="settingForm[customize:isEnabledTimeline]" className="col-xs-3 control-label">{ t('customize_page.Timeline function') }</label>
+      </div>
+    );
+  }
+
+}
+
+CustomizeFunctionOption.propTypes = {
+  t: PropTypes.func.isRequired, // i18next
+
+  behaviorType: PropTypes.string.isRequired,
+  labelHtml: PropTypes.string.isRequired,
+  isSelected: PropTypes.bool.isRequired,
+  onSelected: PropTypes.func.isRequired,
+  children: PropTypes.object.isRequired,
+};
+
+export default withTranslation()(CustomizeFunctionOption);