Skip to content

Commit

Permalink
Block Editor: Directly import useShouldContextualToolbarShow hook (#5…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored May 10, 2023
1 parent 923761a commit f1b07c5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ import { store as blockEditorStore } from '../../store';
import BlockPopover from '../block-popover';
import useBlockToolbarPopoverProps from './use-block-toolbar-popover-props';
import Inserter from '../inserter';
import { unlock } from '../../lock-unlock';
import { privateApis } from '../../private-apis';
import { useShouldContextualToolbarShow } from '../../utils/use-should-contextual-toolbar-show';

function selector( select ) {
const {
__unstableGetEditorMode,
hasMultiSelection,
isTyping,
getLastMultiSelectedBlockClientId,
} = unlock( select( blockEditorStore ) );
} = select( blockEditorStore );

return {
editorMode: __unstableGetEditorMode(),
Expand All @@ -54,7 +53,6 @@ function SelectedBlockPopover( {
[]
);

const { useShouldContextualToolbarShow } = unlock( privateApis );
const isInsertionPointVisible = useSelect(
( select ) => {
const {
Expand Down

1 comment on commit f1b07c5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in f1b07c5.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4937947038
📝 Reported issues:

Please sign in to comment.