Skip to content

Commit

Permalink
Code style tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 1, 2024
1 parent 72afb49 commit 5d07343
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/editor/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ function Header( {
hasFixedToolbar,
} = useSelect( ( select ) => {
const { get: getPreference } = select( preferencesStore );
const { getEditorMode } = select( editorStore );
const {
getEditorMode,
isPublishSidebarOpened: _isPublishSidebarOpened,
} = select( editorStore );

return {
isTextEditor: getEditorMode() === 'text',
isPublishSidebarOpened:
select( editorStore ).isPublishSidebarOpened(),
isPublishSidebarOpened: _isPublishSidebarOpened(),
showIconLabels: getPreference( 'core', 'showIconLabels' ),
hasFixedToolbar: getPreference( 'core', 'fixedToolbar' ),
};
Expand Down

0 comments on commit 5d07343

Please sign in to comment.