Skip to content

Commit

Permalink
Revert stray line
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Dec 17, 2023
1 parent 1c61436 commit 3ad023e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/edit-site/src/components/global-styles/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ const StylesPreview = ( { label, isFocused, withHoverView } ) => {
const [ styles ] = useGlobalStylesOutput();
const disableMotion = useReducedMotion();
const [ isHovered, setIsHovered ] = useState( false );
const [ containerResizeListener, sizes ] = useResizeObserver();
const { width } = sizes || { width: 0, height: 0 };
const [ containerResizeListener, { width } ] = useResizeObserver();
const [ throttledWidth, setThrottledWidthState ] = useState( width );
const [ ratioState, setRatioState ] = useState();

Expand Down

0 comments on commit 3ad023e

Please sign in to comment.