Fix remaining Typescript warnings in form-editor
[MAILPOET-5714]
This commit is contained in:
committed by
Aschepikov
parent
6224f49842
commit
349c17ef1d
@@ -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');
|
||||
|
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user