Skip to content

Commit

Permalink
Interface: Remove deprecated prop from InterfaceSkeleton (#28034)
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored Jan 7, 2021
1 parent c460a3e commit 4a81120
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 4 additions & 0 deletions packages/interface/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Changes

- `leftSidebar` prop in `InterfaceSkeleton` component was removed ([#26517](https://github.com/WordPress/gutenberg/pull/26517). Use `secondarySidebar` prop instead.

## 0.11.0 (2020-12-17)

### New Feature
Expand Down
12 changes: 0 additions & 12 deletions packages/interface/src/components/interface-skeleton/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import classnames from 'classnames';
*/
import { forwardRef, useEffect, useRef } from '@wordpress/element';
import { __unstableUseNavigateRegions as useNavigateRegions } from '@wordpress/components';
import deprecated from '@wordpress/deprecated';
import { __ } from '@wordpress/i18n';

function useHTMLClass( className ) {
Expand Down Expand Up @@ -36,8 +35,6 @@ function InterfaceSkeleton(
actions,
labels,
className,
// Deprecated props.
leftSidebar,
shortcuts,
},
ref
Expand Down Expand Up @@ -69,15 +66,6 @@ function InterfaceSkeleton(

const mergedLabels = { ...defaultLabels, ...labels };

if ( leftSidebar ) {
deprecated( 'leftSidebar prop in InterfaceSkeleton component', {
alternative: 'secondarySidebar prop',
version: '9.7.0',
plugin: 'Gutenberg',
} );
secondarySidebar = leftSidebar;
}

return (
<div
ref={ ref }
Expand Down

0 comments on commit 4a81120

Please sign in to comment.