Skip to content

Commit

Permalink
Fix remaining Typescript warnings in form-editor
Browse files Browse the repository at this point in the history
[MAILPOET-5714]
  • Loading branch information
costasovo committed Dec 14, 2023
1 parent 6c1f52c commit e76fe5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit e76fe5a

Please sign in to comment.