Skip to content

Commit

Permalink
Remove unnecessary props
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed May 9, 2024
1 parent 874ac90 commit 6df631d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/block-editor/src/components/inserter/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ function InserterMenu(
category={ selectedPatternCategory }
patternFilter={ patternFilter }
showTitlesAsTooltip
initialCategory={ __experimentalInitialCategory }
/>
) }
</BlockPatternsTab>
Expand All @@ -249,7 +248,6 @@ function InserterMenu(
patternFilter,
selectedPatternCategory,
showPatternPanel,
__experimentalInitialCategory,
] );

const mediaTab = useMemo( () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/inserter/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const mediaTab = {
title: __( 'Media' ),
};

function InserterTabs( { onClose, onSelect, children, selectedTab }, ref ) {
function InserterTabs( { onSelect, children, onClose, selectedTab }, ref ) {
const tabs = [ blocksTab, patternsTab, mediaTab ];

return (
Expand Down

0 comments on commit 6df631d

Please sign in to comment.