diff --git a/packages/block-editor/src/components/block-list/block-selection-button.native.js b/packages/block-editor/src/components/block-list/block-selection-button.native.js index 97a790482c765..1f8d1b39cf311 100644 --- a/packages/block-editor/src/components/block-list/block-selection-button.native.js +++ b/packages/block-editor/src/components/block-list/block-selection-button.native.js @@ -4,7 +4,6 @@ import { Icon } from '@wordpress/components'; import { withSelect } from '@wordpress/data'; import { compose } from '@wordpress/compose'; -import { getBlockType } from '@wordpress/blocks'; /** * External dependencies @@ -16,16 +15,10 @@ import { View, Text, TouchableOpacity } from 'react-native'; */ import BlockTitle from '../block-title'; import useBlockDisplayInformation from '../use-block-display-information'; -import SubdirectorSVG from './subdirectory-icon'; import { store as blockEditorStore } from '../../store'; import styles from './block-selection-button.scss'; -const BlockSelectionButton = ( { - clientId, - rootClientId, - rootBlockIcon, - isRTL, -} ) => { +const BlockSelectionButton = ( { clientId, rootClientId } ) => { const blockInformation = useBlockDisplayInformation( clientId ); return ( - { rootClientId && - rootBlockIcon && [ - , - - - , - ] } { - const { getBlockRootClientId, getBlockName, getSettings } = select( - blockEditorStore - ); + const { getBlockRootClientId } = select( blockEditorStore ); const rootClientId = getBlockRootClientId( clientId ); if ( ! rootClientId ) { return { clientId }; } - const rootBlockName = getBlockName( rootClientId ); - const rootBlockType = getBlockType( rootBlockName ); - const rootBlockIcon = rootBlockType ? rootBlockType.icon : {}; return { clientId, rootClientId, - rootBlockIcon, - isRTL: getSettings().isRTL, }; } ), ] )( BlockSelectionButton ); diff --git a/packages/block-editor/src/components/block-list/subdirectory-icon.js b/packages/block-editor/src/components/block-list/subdirectory-icon.js deleted file mode 100644 index 085bc6830bda6..0000000000000 --- a/packages/block-editor/src/components/block-list/subdirectory-icon.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * WordPress dependencies - */ -import { SVG, Path } from '@wordpress/components'; -import { isRTL } from '@wordpress/i18n'; - -const Subdirectory = ( { ...extraProps } ) => ( - - - -); -export default Subdirectory;