Skip to content

Commit

Permalink
Remove deprecated props from native code
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Sep 22, 2021
1 parent aae920b commit 140b1f4
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions packages/components/src/dropdown-menu/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Platform } from 'react-native';
* WordPress dependencies
*/
import { DOWN } from '@wordpress/keycodes';
import deprecated from '@wordpress/deprecated';
import { BottomSheet, PanelBody } from '@wordpress/components';
import { withPreferredColorScheme } from '@wordpress/compose';
import { menu } from '@wordpress/icons';
Expand Down Expand Up @@ -43,24 +42,7 @@ function DropdownMenu( {
label,
popoverProps,
toggleProps,
// The following props exist for backward compatibility.
menuLabel,
position,
} ) {
if ( menuLabel ) {
deprecated( '`menuLabel` prop in `DropdownComponent`', {
alternative: '`menuProps` object and its `aria-label` property',
plugin: 'Gutenberg',
} );
}

if ( position ) {
deprecated( '`position` prop in `DropdownComponent`', {
alternative: '`popoverProps` object and its `position` property',
plugin: 'Gutenberg',
} );
}

if ( isEmpty( controls ) && ! isFunction( children ) ) {
return null;
}
Expand All @@ -76,7 +58,6 @@ function DropdownMenu( {
const mergedPopoverProps = mergeProps(
{
className: 'components-dropdown-menu__popover',
position,
},
popoverProps
);
Expand Down

0 comments on commit 140b1f4

Please sign in to comment.