Skip to content

Commit

Permalink
Improve types in test file
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Nov 28, 2022
1 parent 559e5ee commit dc1ffdc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/components/src/base-field/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ import { render, screen } from '@testing-library/react';
*/
import { useBaseField } from '../index';
import { View } from '../../view';
import type { WordPressComponentProps } from '../../ui/context';
import type { BaseFieldProps } from '../types';

const TestField = (
props: Omit< WordPressComponentProps< BaseFieldProps, 'div' >, 'children' >
) => {
const TestField = ( props: Omit< BaseFieldProps, 'children' > ) => {
return <View { ...useBaseField( { ...props, children: '' } ) } />;
};

Expand Down

0 comments on commit dc1ffdc

Please sign in to comment.