Skip to content

Commit

Permalink
Simplify useViewportMatch hook
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored and kevin940726 committed Oct 25, 2024
1 parent 7d1c863 commit f2b8385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/inserter/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f2b8385

Please sign in to comment.