From ea08bb0400a6d30a2e5ac6ae65a72d767a549ee8 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Wed, 21 Jun 2023 16:17:20 +0800 Subject: [PATCH] Improve labelling of pattern lists --- packages/edit-site/src/components/page-library/index.js | 7 +------ .../edit-site/src/components/page-library/patterns-list.js | 6 +++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/edit-site/src/components/page-library/index.js b/packages/edit-site/src/components/page-library/index.js index ad77c25db27184..2bc8e1ce9354cb 100644 --- a/packages/edit-site/src/components/page-library/index.js +++ b/packages/edit-site/src/components/page-library/index.js @@ -2,7 +2,6 @@ * WordPress dependencies */ import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor'; -import { __ } from '@wordpress/i18n'; import { getQueryArgs } from '@wordpress/url'; /** @@ -28,11 +27,7 @@ export default function PageLibrary() { return ( - + ); diff --git a/packages/edit-site/src/components/page-library/patterns-list.js b/packages/edit-site/src/components/page-library/patterns-list.js index ae6543473c9677..dfbcd1ca2a966d 100644 --- a/packages/edit-site/src/components/page-library/patterns-list.js +++ b/packages/edit-site/src/components/page-library/patterns-list.js @@ -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', '<' ); @@ -85,7 +85,7 @@ export default function PatternsList( { categoryId, label, type } ) { @@ -102,7 +102,7 @@ export default function PatternsList( { categoryId, label, type } ) {