|
@@ -24,8 +24,8 @@ const CustomizeFunctionSettingPresentation = (props: Props): JSX.Element => {
|
|
|
const onClickSubmit = useCallback(async() => {
|
|
const onClickSubmit = useCallback(async() => {
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
- await adminCustomizeContainer.updateCustomizeFunction();
|
|
|
|
|
- toastSuccess(t('toaster.update_successed', { target: t('admin:customize_settings.function'), ns: 'commons' }));
|
|
|
|
|
|
|
+ await adminCustomizeContainer.updateCustomizePresentation();
|
|
|
|
|
+ toastSuccess(t('toaster.update_successed', { target: t('admin:customize_settings.Presentation'), ns: 'commons' }));
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
toastError(err);
|
|
toastError(err);
|
|
@@ -36,30 +36,28 @@ const CustomizeFunctionSettingPresentation = (props: Props): JSX.Element => {
|
|
|
<React.Fragment>
|
|
<React.Fragment>
|
|
|
<div className="form-group row">
|
|
<div className="form-group row">
|
|
|
<div className="offset-md-3 col-md-6 text-left">
|
|
<div className="offset-md-3 col-md-6 text-left">
|
|
|
- <CustomizeFunctionOption
|
|
|
|
|
optionId="isEnabledMarp"
|
|
optionId="isEnabledMarp"
|
|
|
label={t('admin:customize_settings.function_options.enable_marp')}
|
|
label={t('admin:customize_settings.function_options.enable_marp')}
|
|
|
isChecked={adminCustomizeContainer.state.isEnabledMarp || false}
|
|
isChecked={adminCustomizeContainer.state.isEnabledMarp || false}
|
|
|
onChecked={() => { adminCustomizeContainer.switchIsEnabledMarp() }}
|
|
onChecked={() => { adminCustomizeContainer.switchIsEnabledMarp() }}
|
|
|
- >
|
|
|
|
|
- <p className="form-text text-muted">
|
|
|
|
|
- {t('admin:customize_settings.function_options.enable_marp_desc')}
|
|
|
|
|
- <br></br>
|
|
|
|
|
- <a
|
|
|
|
|
- href={`${t('admin:customize_settings.function_options.marp_official_site_link')}`}
|
|
|
|
|
- target="_blank"
|
|
|
|
|
- rel="noopener noreferrer"
|
|
|
|
|
- >{`${t('admin:customize_settings.function_options.marp_official_site')}`}
|
|
|
|
|
- </a>
|
|
|
|
|
- <br></br>
|
|
|
|
|
- <a
|
|
|
|
|
- href={`${t('admin:customize_settings.function_options.marp_in_gorwi_link')}`}
|
|
|
|
|
- target="_blank"
|
|
|
|
|
- rel="noopener noreferrer"
|
|
|
|
|
- >{`${t('admin:customize_settings.function_options.marp_in_growi')}`}
|
|
|
|
|
- </a>
|
|
|
|
|
- </p>
|
|
|
|
|
- </CustomizeFunctionOption>
|
|
|
|
|
|
|
+ <p className="form-text text-muted">
|
|
|
|
|
+ {t('admin:customize_settings.function_options.enable_marp_desc')}
|
|
|
|
|
+ <br></br>
|
|
|
|
|
+ <a
|
|
|
|
|
+ href={`${t('admin:customize_settings.function_options.marp_official_site_link')}`}
|
|
|
|
|
+ target="_blank"
|
|
|
|
|
+ rel="noopener noreferrer"
|
|
|
|
|
+ >{`${t('admin:customize_settings.function_options.marp_official_site')}`}
|
|
|
|
|
+ </a>
|
|
|
|
|
+ <br></br>
|
|
|
|
|
+ <a
|
|
|
|
|
+ href={`${t('admin:customize_settings.function_options.marp_in_gorwi_link')}`}
|
|
|
|
|
+ target="_blank"
|
|
|
|
|
+ rel="noopener noreferrer"
|
|
|
|
|
+ >{`${t('admin:customize_settings.function_options.marp_in_growi')}`}
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </p>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -68,6 +66,6 @@ const CustomizeFunctionSettingPresentation = (props: Props): JSX.Element => {
|
|
|
</React.Fragment>
|
|
</React.Fragment>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
|
-const CustomizeFunctionSettingPresentationWrapper = withUnstatedContainers(CustomizeFunctionSettingPresentation, [AdminCustomizeContainer]);
|
|
|
|
|
|
|
+const CustomizePresentationSettingWrapper = withUnstatedContainers(CustomizeFunctionSettingPresentation, [AdminCustomizeContainer]);
|
|
|
|
|
|
|
|
-export default CustomizeFunctionSettingPresentationWrapper;
|
|
|
|
|
|
|
+export default CustomizePresentationSettingWrapper;
|