Fix remaining Typescript warnings in form-editor

[MAILPOET-5714]
This commit is contained in:
Rostislav Wolny
2023-12-07 15:41:17 +01:00
committed by Aschepikov
parent 6224f49842
commit 349c17ef1d
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,8 @@
import { FontSizePicker } from '@wordpress/components';
import { useSetting } from '@wordpress/block-editor';
import { FontSizePickerProps } from '@wordpress/components/src/font-size-picker/types';
type Props = Pick<FontSizePicker.Props, 'value' | 'onChange'>;
type Props = Pick<FontSizePickerProps, 'value' | 'onChange'>;
export function FontSizeSettings({ value, onChange }: Props): JSX.Element {
const fontSizes = useSetting('typography.fontSizes');

View File

@@ -19,7 +19,7 @@ import { FontFamilySettings } from '../font-family-settings';
import { storeName } from '../../store';
type StylesSettingsPanelProps = {
onToggle: PanelBody.Props['onToggle'];
onToggle: (next: boolean) => void;
isOpened: boolean;
};