Skip to content

Commit ea08bb0

Browse files
committed
Improve labelling of pattern lists
1 parent 50a1383 commit ea08bb0

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

packages/edit-site/src/components/page-library/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* WordPress dependencies
33
*/
44
import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
5-
import { __ } from '@wordpress/i18n';
65
import { getQueryArgs } from '@wordpress/url';
76

87
/**
@@ -28,11 +27,7 @@ export default function PageLibrary() {
2827
return (
2928
<ExperimentalBlockEditorProvider settings={ settings }>
3029
<Page className="edit-site-library">
31-
<PatternsList
32-
type={ type }
33-
categoryId={ category }
34-
label={ __( 'Patterns list' ) }
35-
/>
30+
<PatternsList type={ type } categoryId={ category } />
3631
</Page>
3732
</ExperimentalBlockEditorProvider>
3833
);

packages/edit-site/src/components/page-library/patterns-list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { unlock } from '../../lock-unlock';
2727

2828
const { useLocation, useHistory } = unlock( routerPrivateApis );
2929

30-
export default function PatternsList( { categoryId, label, type } ) {
30+
export default function PatternsList( { categoryId, type } ) {
3131
const location = useLocation();
3232
const history = useHistory();
3333
const isMobileViewport = useViewportMatch( 'medium', '<' );
@@ -85,7 +85,7 @@ export default function PatternsList( { categoryId, label, type } ) {
8585
<Grid
8686
icon={ symbol }
8787
categoryId={ categoryId }
88-
label={ label }
88+
label={ __( 'Synced patterns' ) }
8989
items={ syncedPatterns }
9090
/>
9191
</>
@@ -102,7 +102,7 @@ export default function PatternsList( { categoryId, label, type } ) {
102102
</VStack>
103103
<Grid
104104
categoryId={ categoryId }
105-
label={ label }
105+
label={ __( 'Standard patterns' ) }
106106
items={ unsyncedPatterns }
107107
/>
108108
</>

0 commit comments

Comments
 (0)