Skip to content

Commit

Permalink
Hide the document bar if post type doesn't support title
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 1, 2024
1 parent f62f919 commit b335470
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/editor/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ import { PinnedItems } from '@wordpress/interface';
import CollapsableBlockToolbar from '../collapsible-block-toolbar';
import DocumentBar from '../document-bar';
import DocumentTools from '../document-tools';
import MoreMenu from '../more-menu';
import PostPreviewButton from '../post-preview-button';
import PostPublishButtonOrToggle from '../post-publish-button/post-publish-button-or-toggle';
import PostSavedState from '../post-saved-state';
import PostTypeSupportCheck from '../post-type-support-check';
import PostViewLink from '../post-view-link';
import PreviewDropdown from '../preview-dropdown';
import MoreMenu from '../more-menu';
import PostPublishButtonOrToggle from '../post-publish-button/post-publish-button-or-toggle';

import { store as editorStore } from '../../store';

const slideY = {
Expand Down Expand Up @@ -88,7 +88,9 @@ function Header( {
! isBlockToolsCollapsed && hasTopToolbar,
} ) }
>
<DocumentBar />
<PostTypeSupportCheck supportKeys="title">
<DocumentBar />
</PostTypeSupportCheck>
</div>
</motion.div>
<motion.div
Expand Down

0 comments on commit b335470

Please sign in to comment.