Skip to content
Prev Previous commit
Fix ViewOwnProps import
  • Loading branch information
sarayourfriend committed May 21, 2021
commit 437ab9a56ce792960b1a33d064175bceb49d09f7
4 changes: 2 additions & 2 deletions packages/components/src/z-stack/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { isValidElement } from '@wordpress/element';
import { getValidChildren } from '../ui/utils/get-valid-children';
import { contextConnect, useContextSystem } from '../ui/context';
// eslint-disable-next-line no-duplicate-imports
import type { ViewOwnProps } from '../ui/context';
import type { PolymorphicComponentProps } from '../ui/context';
import { View } from '../view';
import * as styles from './styles';
const { ZStackView } = styles;
Expand Down Expand Up @@ -47,7 +47,7 @@ export interface ZStackProps {
}

function ZStack(
props: ViewOwnProps< ZStackProps, 'div' >,
props: PolymorphicComponentProps< ZStackProps, 'div' >,
forwardedRef: Ref< any >
) {
const {
Expand Down