From e586bb59a77add37be25fb74bd9d3d4324341504 Mon Sep 17 00:00:00 2001 From: James Koster Date: Tue, 11 Jul 2023 22:05:43 +0100 Subject: [PATCH] Make "My patterns" permanently visible --- .../index.js | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-patterns/index.js b/packages/edit-site/src/components/sidebar-navigation-screen-patterns/index.js index d3fc15358027b..c7d3a3b77d151 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-patterns/index.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-patterns/index.js @@ -107,7 +107,7 @@ export default function SidebarNavigationScreenPatterns() { const { templatePartAreas, hasTemplateParts, isLoading } = useTemplatePartAreas(); const { patternCategories, hasPatterns } = usePatternCategories(); - const { myPatterns, hasPatterns: hasMyPatterns } = useMyPatterns(); + const { myPatterns } = useMyPatterns(); const isTemplatePartsMode = useSelect( ( select ) => { const settings = select( editSiteStore ).getSettings(); @@ -153,23 +153,25 @@ export default function SidebarNavigationScreenPatterns() { ) } - { hasMyPatterns && ( - - - - ) } + + + { hasTemplateParts && (