Skip to content

Commit

Permalink
Improve labelling of pattern lists
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jun 21, 2023
1 parent 50a1383 commit ea08bb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions packages/edit-site/src/components/page-library/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* WordPress dependencies
*/
import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
import { __ } from '@wordpress/i18n';
import { getQueryArgs } from '@wordpress/url';

/**
Expand All @@ -28,11 +27,7 @@ export default function PageLibrary() {
return (
<ExperimentalBlockEditorProvider settings={ settings }>
<Page className="edit-site-library">
<PatternsList
type={ type }
categoryId={ category }
label={ __( 'Patterns list' ) }
/>
<PatternsList type={ type } categoryId={ category } />
</Page>
</ExperimentalBlockEditorProvider>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { unlock } from '../../lock-unlock';

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

export default function PatternsList( { categoryId, label, type } ) {
export default function PatternsList( { categoryId, type } ) {
const location = useLocation();
const history = useHistory();
const isMobileViewport = useViewportMatch( 'medium', '<' );
Expand Down Expand Up @@ -85,7 +85,7 @@ export default function PatternsList( { categoryId, label, type } ) {
<Grid
icon={ symbol }
categoryId={ categoryId }
label={ label }
label={ __( 'Synced patterns' ) }
items={ syncedPatterns }
/>
</>
Expand All @@ -102,7 +102,7 @@ export default function PatternsList( { categoryId, label, type } ) {
</VStack>
<Grid
categoryId={ categoryId }
label={ label }
label={ __( 'Standard patterns' ) }
items={ unsyncedPatterns }
/>
</>
Expand Down

0 comments on commit ea08bb0

Please sign in to comment.