From dd714522ecfded4be1fe44b6ec5b6162e6f20f42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zieli=C5=84ski?= Date: Thu, 5 May 2022 14:00:56 +0200 Subject: [PATCH] Change useEntityRecords as useEntityRecords to useEntityRecords --- packages/block-library/src/block/edit.js | 2 +- packages/block-library/src/categories/edit.js | 2 +- .../block-library/src/navigation/use-navigation-entities.js | 2 +- packages/block-library/src/page-list/convert-to-links-modal.js | 2 +- packages/block-library/src/page-list/edit.js | 2 +- .../src/components/block-placeholder/use-navigation-entities.js | 2 +- packages/edit-site/src/components/list/table.js | 2 +- packages/widgets/src/blocks/legacy-widget/edit/index.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/block-library/src/block/edit.js b/packages/block-library/src/block/edit.js index 395f6b555a6356..ac1244db8a763a 100644 --- a/packages/block-library/src/block/edit.js +++ b/packages/block-library/src/block/edit.js @@ -5,7 +5,7 @@ import { useDispatch, useSelect } from '@wordpress/data'; import { useEntityBlockEditor, useEntityProp, - useEntityRecord as useEntityRecord, + useEntityRecord, } from '@wordpress/core-data'; import { Placeholder, diff --git a/packages/block-library/src/categories/edit.js b/packages/block-library/src/categories/edit.js index dd2e2017f703d0..7d1948caa8d39d 100644 --- a/packages/block-library/src/categories/edit.js +++ b/packages/block-library/src/categories/edit.js @@ -17,7 +17,7 @@ import { useInstanceId } from '@wordpress/compose'; import { InspectorControls, useBlockProps } from '@wordpress/block-editor'; import { __ } from '@wordpress/i18n'; import { pin } from '@wordpress/icons'; -import { useEntityRecords as useEntityRecords } from '@wordpress/core-data'; +import { useEntityRecords } from '@wordpress/core-data'; export default function CategoriesEdit( { attributes: { diff --git a/packages/block-library/src/navigation/use-navigation-entities.js b/packages/block-library/src/navigation/use-navigation-entities.js index 9689b02e1657e8..fad991c56ce3b4 100644 --- a/packages/block-library/src/navigation/use-navigation-entities.js +++ b/packages/block-library/src/navigation/use-navigation-entities.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { useEntityRecords as useEntityRecords } from '@wordpress/core-data'; +import { useEntityRecords } from '@wordpress/core-data'; /** * @typedef {Object} NavigationEntitiesData diff --git a/packages/block-library/src/page-list/convert-to-links-modal.js b/packages/block-library/src/page-list/convert-to-links-modal.js index 8fe7ca5492aca4..b24ca6735bbf78 100644 --- a/packages/block-library/src/page-list/convert-to-links-modal.js +++ b/packages/block-library/src/page-list/convert-to-links-modal.js @@ -4,7 +4,7 @@ import { Button, Modal } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { useDispatch } from '@wordpress/data'; -import { useEntityRecords as useEntityRecords } from '@wordpress/core-data'; +import { useEntityRecords } from '@wordpress/core-data'; import { createBlock as create } from '@wordpress/blocks'; import { store as blockEditorStore } from '@wordpress/block-editor'; diff --git a/packages/block-library/src/page-list/edit.js b/packages/block-library/src/page-list/edit.js index 6f9f8957a25841..d517ee5b1775d3 100644 --- a/packages/block-library/src/page-list/edit.js +++ b/packages/block-library/src/page-list/edit.js @@ -18,7 +18,7 @@ import { useMemo, useState, memo } from '@wordpress/element'; import { useSelect } from '@wordpress/data'; import { store as coreStore, - useEntityRecords as useEntityRecords, + useEntityRecords, } from '@wordpress/core-data'; /** diff --git a/packages/edit-navigation/src/components/block-placeholder/use-navigation-entities.js b/packages/edit-navigation/src/components/block-placeholder/use-navigation-entities.js index bc904fb7044331..dac2b0db8e569d 100644 --- a/packages/edit-navigation/src/components/block-placeholder/use-navigation-entities.js +++ b/packages/edit-navigation/src/components/block-placeholder/use-navigation-entities.js @@ -4,7 +4,7 @@ import { useSelect } from '@wordpress/data'; import { store as coreStore, - useEntityRecords as useEntityRecords, + useEntityRecords, } from '@wordpress/core-data'; /** diff --git a/packages/edit-site/src/components/list/table.js b/packages/edit-site/src/components/list/table.js index 005eb8db62824a..610dedd1a18144 100644 --- a/packages/edit-site/src/components/list/table.js +++ b/packages/edit-site/src/components/list/table.js @@ -4,7 +4,7 @@ import { useSelect } from '@wordpress/data'; import { store as coreStore, - useEntityRecords as useEntityRecords, + useEntityRecords, } from '@wordpress/core-data'; import { __, sprintf } from '@wordpress/i18n'; import { diff --git a/packages/widgets/src/blocks/legacy-widget/edit/index.js b/packages/widgets/src/blocks/legacy-widget/edit/index.js index 9c1261374c814f..68af931dc6ffc4 100644 --- a/packages/widgets/src/blocks/legacy-widget/edit/index.js +++ b/packages/widgets/src/blocks/legacy-widget/edit/index.js @@ -18,7 +18,7 @@ import { brush as brushIcon } from '@wordpress/icons'; import { __ } from '@wordpress/i18n'; import { useState, useCallback } from '@wordpress/element'; import { useSelect } from '@wordpress/data'; -import { useEntityRecord as useEntityRecord } from '@wordpress/core-data'; +import { useEntityRecord } from '@wordpress/core-data'; /** * Internal dependencies