From f2b8385e0842435d873f735aa8cd5ba15e248738 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Fri, 25 Oct 2024 10:21:31 +0900 Subject: [PATCH] Simplify `useViewportMatch` hook --- packages/block-editor/src/components/inserter/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/inserter/menu.js b/packages/block-editor/src/components/inserter/menu.js index d0841edc539f97..3d6d16be11eacf 100644 --- a/packages/block-editor/src/components/inserter/menu.js +++ b/packages/block-editor/src/components/inserter/menu.js @@ -67,7 +67,7 @@ function InserterMenu( const [ patternFilter, setPatternFilter ] = useState( 'all' ); const [ selectedMediaCategory, setSelectedMediaCategory ] = useState( null ); - const isLargeViewport = useViewportMatch( 'large', '>=' ); + const isLargeViewport = useViewportMatch( 'large' ); const [ hasCategories, setHasCategories ] = useState( true ); function getInitialTab() {