Remove generate preview options from tasks page (#2342)

This commit is contained in:
WithoutPants
2022-02-28 13:13:00 +11:00
committed by GitHub
parent 1ab5be162e
commit 34a7e67b29
3 changed files with 32 additions and 25 deletions

View File

@@ -192,6 +192,7 @@ export const ChangeButtonSetting = <T extends {}>(props: IDialogSetting<T>) => {
id,
className,
headingID,
tooltipID,
subHeadingID,
subHeading,
value,
@@ -203,12 +204,15 @@ export const ChangeButtonSetting = <T extends {}>(props: IDialogSetting<T>) => {
} = props;
const intl = useIntl();
const tooltip = tooltipID ? intl.formatMessage({ id: tooltipID }) : undefined;
const disabledClassName = disabled ? "disabled" : "";
return (
<div className={`setting ${className ?? ""} ${disabledClassName}`} id={id}>
<div>
<h3>{headingID ? intl.formatMessage({ id: headingID }) : undefined}</h3>
<h3 title={tooltip}>
{headingID ? intl.formatMessage({ id: headingID }) : undefined}
</h3>
<div className="value">
{renderValue ? renderValue(value) : undefined}
@@ -320,6 +324,7 @@ export const ModalSetting = <T extends {}>(props: IModalSetting<T>) => {
onChange,
renderField,
renderValue,
tooltipID,
buttonText,
buttonTextID,
modalProps,
@@ -351,6 +356,7 @@ export const ModalSetting = <T extends {}>(props: IModalSetting<T>) => {
buttonText={buttonText}
buttonTextID={buttonTextID}
headingID={headingID}
tooltipID={tooltipID}
subHeadingID={subHeadingID}
subHeading={subHeading}
value={value}