Skip to content

Commit

Permalink
remove deprecation warning until existing implementations are migrated
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Sep 26, 2023
1 parent c562f42 commit 878af2b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/components/src/modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
import { __ } from '@wordpress/i18n';
import { close } from '@wordpress/icons';
import { getScrollContainer } from '@wordpress/dom';
import deprecated from '@wordpress/deprecated';

/**
* Internal dependencies
Expand Down Expand Up @@ -92,14 +91,6 @@ function UnforwardedModal(
? `has-width-${ contentWidth }`
: '';

if ( !! isFullScreen ) {
deprecated( '`isFullScreen` prop for wp.components.Modal', {
since: '6.4',
version: '6.7',
hint: 'Set the `contentWidth` prop to `fill` instead.',
} );
}

// Determines whether the Modal content is scrollable and updates the state.
const isContentScrollable = useCallback( () => {
if ( ! contentRef.current ) {
Expand Down

0 comments on commit 878af2b

Please sign in to comment.