Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jan 30, 2024
1 parent f216156 commit 09fa3fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
* WordPress dependencies
*/
import { useSelect } from '@wordpress/data';
import { editorPrivateApis, store as editorStore } from '@wordpress/editor';
import {
privateApis as editorPrivateApis,
store as editorStore,
} from '@wordpress/editor';
import { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';

/**
* Internal dependencies
*/
import { unlock } from '../../../lock-unlock';

const { DocumentTools: EditorModeSwitcher } = unlock( editorPrivateApis );
const { ModeSwitcher: EditorModeSwitcher } = unlock( editorPrivateApis );

function ModeSwitcher() {
const { shortcut, isRichEditingEnabled, isCodeEditingEnabled } = useSelect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
* WordPress dependencies
*/
import { useSelect } from '@wordpress/data';
import { editorPrivateApis } from '@wordpress/editor';
import { privateApis as editorPrivateApis } from '@wordpress/editor';
import { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';

/**
* Internal dependencies
*/
import { unlock } from '../../../lock-unlock';

const { DocumentTools: EditorModeSwitcher } = unlock( editorPrivateApis );
const { ModeSwitcher: EditorModeSwitcher } = unlock( editorPrivateApis );

function ModeSwitcher() {
const shortcut = useSelect(
Expand Down

0 comments on commit 09fa3fe

Please sign in to comment.