Remove toggle that has been removed from specs

[MAILPOET-2600]
This commit is contained in:
Pavel Dohnal
2020-02-26 10:36:31 +01:00
committed by Jack Kitterhing
parent 24c87ad19e
commit 57b0747b6e

View File

@@ -4,7 +4,6 @@ import {
ColorPalette,
Panel,
PanelBody,
ToggleControl,
} from '@wordpress/components';
import { FontSizePicker } from '@wordpress/block-editor';
import MailPoet from 'mailpoet';
@@ -77,13 +76,6 @@ const BasicSettingsPanel = ({ onToggle, isOpened }) => {
)
}
</span>
<ToggleControl
label={MailPoet.I18n.t('formSettingsStylesFontColorInherit')}
checked={settings.fontColor === undefined}
onChange={(newValue) => {
if (newValue) setFontColor(undefined);
}}
/>
<ColorPalette
value={settings.fontColor}
onChange={setFontColor}