From 3ebc40f26e7fcf2200fcb8263828120c1ae100cb Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Tue, 30 Apr 2019 09:23:26 +0200 Subject: [PATCH] Update Fragment imports in READMEs Some Fragment imports were incorrect. Fix them. --- packages/block-editor/src/components/url-popover/README.md | 2 +- packages/components/src/higher-order/with-filters/README.md | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/url-popover/README.md b/packages/block-editor/src/components/url-popover/README.md index bd5c634255545..8245f9e9c4933 100644 --- a/packages/block-editor/src/components/url-popover/README.md +++ b/packages/block-editor/src/components/url-popover/README.md @@ -8,7 +8,7 @@ URLPopover is a presentational React component used to render a popover used for The component will be rendered adjacent to its parent. ```jsx -import { Fragment } from '@wordpress/elements'; +import { Fragment } from '@wordpress/element'; import { ToggleControl, IconButton, Button } from '@wordpress/components'; import { URLPopover } from '@wordpress/block-editor'; diff --git a/packages/components/src/higher-order/with-filters/README.md b/packages/components/src/higher-order/with-filters/README.md index 88eac8ba8a29a..41a936c854162 100644 --- a/packages/components/src/higher-order/with-filters/README.md +++ b/packages/components/src/higher-order/with-filters/README.md @@ -7,7 +7,8 @@ Wrapping a component with `withFilters` provides a filtering capability controll ## Usage ```jsx -import { Fragment, withFilters } from '@wordpress/components'; +import { Fragment } from '@wordpress/element'; +import { withFilters } from '@wordpress/components'; import { addFilter } from '@wordpress/hooks'; const MyComponent = ( { title } ) =>

{ title }

; @@ -37,7 +38,8 @@ const MyComponentWithFilters = withFilters( 'MyHookName' )( MyComponent ); It is also possible to override props by implementing a higher-order component which works as follows: ```jsx -import { Fragment, withFilters } from '@wordpress/components'; +import { Fragment } from '@wordpress/element'; +import { withFilters } from '@wordpress/components'; import { addFilter } from '@wordpress/hooks'; const MyComponent = ( { hint, title } ) => (