itizawa há 6 anos atrás
pai
commit
013a329f40

+ 9 - 6
src/client/js/components/Admin/Customize/CustomizeLayoutSetting.jsx

@@ -38,13 +38,16 @@ class CustomizeLayoutSetting extends React.Component {
   }
   }
 
 
   renderDevAlert() {
   renderDevAlert() {
-    return (
-      <div className="alert alert-warning">
-        <strong>DEBUG MESSAGE:</strong> development build では、リアルタイムプレビューが無効になります
-      </div>
-    );
+    if (process.env.NODE_ENV === 'development') {
+      return (
+        <div className="alert alert-warning">
+          <strong>DEBUG MESSAGE:</strong> development build では、リアルタイムプレビューが無効になります
+        </div>
+      );
+    }
   }
   }
 
 
+
   render() {
   render() {
     const { t } = this.props;
     const { t } = this.props;
 
 
@@ -53,7 +56,7 @@ class CustomizeLayoutSetting extends React.Component {
         <h2>{t('customize_page.Layout')}</h2>
         <h2>{t('customize_page.Layout')}</h2>
         <CustomizeLayoutOptions />
         <CustomizeLayoutOptions />
         <h2>{ t('customize_page.Theme') }</h2>
         <h2>{ t('customize_page.Theme') }</h2>
-        {process.env.NODE_ENV === 'development' && (this.renderDevAlert())}
+        {this.renderDevAlert()}
         <CustomizeThemeOptions />
         <CustomizeThemeOptions />
         <div className="form-group my-3">
         <div className="form-group my-3">
           <div className="col-xs-offset-4 col-xs-5">
           <div className="col-xs-offset-4 col-xs-5">