diff --git a/edit-post/components/sidebar/post-taxonomies/index.js b/edit-post/components/sidebar/post-taxonomies/index.js index b5376f5bb84b3f..be04dbcf6b6f9e 100644 --- a/edit-post/components/sidebar/post-taxonomies/index.js +++ b/edit-post/components/sidebar/post-taxonomies/index.js @@ -2,19 +2,12 @@ * WordPress dependencies */ import { PostTaxonomies as PostTaxonomiesForm, PostTaxonomiesCheck } from '@wordpress/editor'; -import { compose } from '@wordpress/compose'; -import { withSelect, withDispatch } from '@wordpress/data'; /** * Internal dependencies */ import TaxonomyPanel from './taxonomy-panel'; -/** - * Module Constants - */ -const PANEL_NAME = 'post-taxonomies'; - function PostTaxonomies() { return ( @@ -31,16 +24,4 @@ function PostTaxonomies() { ); } -export default compose( [ - withSelect( ( select ) => { - return { - isOpened: select( 'core/edit-post' ).isEditorSidebarPanelOpened( PANEL_NAME ), - }; - } ), - withDispatch( ( dispatch ) => ( { - onTogglePanel() { - return dispatch( 'core/edit-post' ).toggleGeneralSidebarEditorPanel( PANEL_NAME ); - }, - } ) ), -] )( PostTaxonomies ); - +export default PostTaxonomies;