Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Sep 6, 2024
1 parent b98be96 commit 345dca5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/block-library/src/image/use-max-width-observer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
import { cloneElement, useRef, useMemo } from '@wordpress/element';
import { useRef, useMemo } from '@wordpress/element';
import { useResizeObserver } from '@wordpress/compose';

function useMaxWidthObserver() {
Expand All @@ -22,12 +22,7 @@ function useMaxWidthObserver() {
} }
ref={ observerRef }
>
{ cloneElement( contentResizeListener, {
style: {
...contentResizeListener.props.style,
position: 'relative',
},
} ) }
{ contentResizeListener }
</div>
);

Expand Down

0 comments on commit 345dca5

Please sign in to comment.