Skip to content

Commit

Permalink
Remove logic for template part: it is never used
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Apr 11, 2024
1 parent 9037626 commit 3084583
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ function useTemplateDetails( postType, postId ) {
return { title, description, content, footer };
}

const POST_TYPE_PATH = {
wp_template: '/wp_template',
wp_template_part: '/wp_template_part/all',
};

export default function SidebarNavigationScreenTemplate() {
const navigator = useNavigator();
const {
Expand All @@ -119,7 +114,7 @@ export default function SidebarNavigationScreenTemplate() {
postId={ postId }
toggleProps={ { as: SidebarButton } }
onRemove={ () => {
navigator.goTo( POST_TYPE_PATH[ postType ] );
navigator.goTo( postType );
} }
/>
<SidebarButton
Expand Down

0 comments on commit 3084583

Please sign in to comment.