@@ -19,7 +19,7 @@ import AddNewPattern from '../add-new-pattern';
19
19
import SidebarNavigationItem from '../sidebar-navigation-item' ;
20
20
import SidebarNavigationScreen from '../sidebar-navigation-screen' ;
21
21
import CategoryItem from './category-item' ;
22
- import { DEFAULT_CATEGORY , DEFAULT_TYPE } from '../page-library /utils' ;
22
+ import { DEFAULT_CATEGORY , DEFAULT_TYPE } from '../page-patterns /utils' ;
23
23
import { store as editSiteStore } from '../../store' ;
24
24
import { useLink } from '../routes/link' ;
25
25
import usePatternCategories from './use-pattern-categories' ;
@@ -33,7 +33,7 @@ const templatePartAreaLabels = {
33
33
uncategorized : __ ( 'Uncategorized' ) ,
34
34
} ;
35
35
36
- export default function SidebarNavigationScreenLibrary ( ) {
36
+ export default function SidebarNavigationScreenPatterns ( ) {
37
37
const isMobileViewport = useViewportMatch ( 'medium' , '<' ) ;
38
38
const { categoryType, categoryId } = getQueryArgs ( window . location . href ) ;
39
39
const currentCategory = categoryId || DEFAULT_CATEGORY ;
@@ -68,19 +68,19 @@ export default function SidebarNavigationScreenLibrary() {
68
68
return (
69
69
< SidebarNavigationScreen
70
70
isRoot = { isTemplatePartsMode }
71
- title = { __ ( 'Library ' ) }
71
+ title = { __ ( 'Patterns ' ) }
72
72
description = { __ (
73
73
'Manage what patterns are available when editing your site.'
74
74
) }
75
75
actions = { < AddNewPattern /> }
76
76
footer = { footer }
77
77
content = {
78
78
< >
79
- { isLoading && __ ( 'Loading library ' ) }
79
+ { isLoading && __ ( 'Loading patterns ' ) }
80
80
{ ! isLoading && (
81
81
< >
82
82
{ ! hasTemplateParts && ! hasPatterns && (
83
- < ItemGroup className = "edit-site-sidebar-navigation-screen-library__group " >
83
+ < ItemGroup className = "edit-site-sidebar-navigation-screen-patterns__group " >
84
84
< Item >
85
85
{ __ (
86
86
'No template parts or patterns found'
@@ -89,7 +89,7 @@ export default function SidebarNavigationScreenLibrary() {
89
89
</ ItemGroup >
90
90
) }
91
91
{ hasMyPatterns && (
92
- < ItemGroup className = "edit-site-sidebar-navigation-screen-library__group " >
92
+ < ItemGroup className = "edit-site-sidebar-navigation-screen-patterns__group " >
93
93
< CategoryItem
94
94
key = { myPatterns . name }
95
95
count = { myPatterns . count }
@@ -106,7 +106,7 @@ export default function SidebarNavigationScreenLibrary() {
106
106
</ ItemGroup >
107
107
) }
108
108
{ hasTemplateParts && (
109
- < ItemGroup className = "edit-site-sidebar-navigation-screen-library__group " >
109
+ < ItemGroup className = "edit-site-sidebar-navigation-screen-patterns__group " >
110
110
{ Object . entries ( templatePartAreas ) . map (
111
111
( [ area , parts ] ) => (
112
112
< CategoryItem
@@ -133,7 +133,7 @@ export default function SidebarNavigationScreenLibrary() {
133
133
</ ItemGroup >
134
134
) }
135
135
{ hasPatterns && (
136
- < ItemGroup className = "edit-site-sidebar-navigation-screen-library__group " >
136
+ < ItemGroup className = "edit-site-sidebar-navigation-screen-patterns__group " >
137
137
{ patternCategories . map ( ( category ) => (
138
138
< CategoryItem
139
139
key = { category . name }
0 commit comments