diff --git a/packages/editor/src/components/document-tools/index.js b/packages/editor/src/components/document-tools/index.js index 54121652bbf131..6a8c20c8d70551 100644 --- a/packages/editor/src/components/document-tools/index.js +++ b/packages/editor/src/components/document-tools/index.js @@ -38,10 +38,8 @@ function DocumentTools( { className, disableBlockTools = false } ) { listViewShortcut, inserterSidebarToggleRef, listViewToggleRef, - hasFixedToolbar, showIconLabels, } = useSelect( ( select ) => { - const { getSettings } = select( blockEditorStore ); const { get } = select( preferencesStore ); const { isListViewOpened, @@ -60,7 +58,6 @@ function DocumentTools( { className, disableBlockTools = false } ) { ), inserterSidebarToggleRef: getInserterSidebarToggleRef(), listViewToggleRef: getListViewToggleRef(), - hasFixedToolbar: getSettings().hasFixedToolbar, showIconLabels: get( 'core', 'showIconLabels' ), isDistractionFree: get( 'core', 'distractionFree' ), isVisualMode: getEditorMode() === 'visual', @@ -137,7 +134,7 @@ function DocumentTools( { className, disableBlockTools = false } ) { ) } { ( isWideViewport || ! showIconLabels ) && ( <> - { isLargeViewport && ! hasFixedToolbar && ( + { isLargeViewport && (