Skip to content

Commit

Permalink
Remove new template part screen as it was covered by pattern screen
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jun 2, 2023
1 parent f7f2f2b commit fd5f025
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ function usePatternTitleAndDescription( postType, postId ) {

if ( ! descriptionText && addedBy.text ) {
descriptionText = sprintf(
// translators: %s: template part title e.g: "Header".
__( 'This is your %s template part.' ),
// translators: %s: pattern title e.g: "Header".
__( 'This is your %s pattern.' ),
getTitle()
);
}
Expand Down Expand Up @@ -67,7 +67,7 @@ function usePatternTitleAndDescription( postType, postId ) {

{ addedBy.isCustomized && (
<span className="edit-site-sidebar-navigation-screen-template__added-by-description-customized">
{ _x( '(Customized)', 'template part' ) }
{ _x( '(Customized)', 'pattern' ) }
</span>
) }
</span>
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions packages/edit-site/src/components/sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import SidebarNavigationScreenMain from '../sidebar-navigation-screen-main';
import SidebarNavigationScreenLibrary from '../sidebar-navigation-screen-library';
import SidebarNavigationScreenTemplates from '../sidebar-navigation-screen-templates';
import SidebarNavigationScreenTemplate from '../sidebar-navigation-screen-template';
import SidebarNavigationScreenTemplatePart from '../sidebar-navigation-screen-template-part';
import SidebarNavigationScreenPattern from '../sidebar-navigation-screen-pattern';
import useSyncPathWithURL, {
getPathFromURL,
Expand Down Expand Up @@ -69,9 +68,6 @@ function SidebarScreens() {
<NavigatorScreen path="/:postType(wp_template)/:postId">
<SidebarNavigationScreenTemplate />
</NavigatorScreen>
<NavigatorScreen path="/:postType(wp_template_part)/:postId">
<SidebarNavigationScreenTemplatePart />
</NavigatorScreen>
</>
);
}
Expand Down

0 comments on commit fd5f025

Please sign in to comment.