|
@@ -29,22 +29,11 @@ const CustomizeThemeSetting = (props: Props): JSX.Element => {
|
|
|
}
|
|
}
|
|
|
}, [t, adminCustomizeContainer]);
|
|
}, [t, adminCustomizeContainer]);
|
|
|
|
|
|
|
|
- const renderDevAlert = useCallback(() => {
|
|
|
|
|
- if (process.env.NODE_ENV === 'development') {
|
|
|
|
|
- return (
|
|
|
|
|
- <div className="alert alert-warning">
|
|
|
|
|
- <strong>DEBUG MESSAGE:</strong> Live preview for theme is disabled in development mode.
|
|
|
|
|
- </div>
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
- }, []);
|
|
|
|
|
-
|
|
|
|
|
return (
|
|
return (
|
|
|
<React.Fragment>
|
|
<React.Fragment>
|
|
|
<div className="row">
|
|
<div className="row">
|
|
|
<div className="col-12">
|
|
<div className="col-12">
|
|
|
<h2 className="admin-setting-header">{t('admin:customize_setting.theme')}</h2>
|
|
<h2 className="admin-setting-header">{t('admin:customize_setting.theme')}</h2>
|
|
|
- {renderDevAlert()}
|
|
|
|
|
<CustomizeThemeOptions />
|
|
<CustomizeThemeOptions />
|
|
|
<AdminUpdateButtonRow onClick={onClickSubmit} disabled={adminCustomizeContainer.state.retrieveError != null} />
|
|
<AdminUpdateButtonRow onClick={onClickSubmit} disabled={adminCustomizeContainer.state.retrieveError != null} />
|
|
|
</div>
|
|
</div>
|