Skip to content

Commit

Permalink
Remove unlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Oct 11, 2024
1 parent 29a5209 commit 43a50e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/block-editor/src/hooks/grid-visualizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { useSelect } from '@wordpress/data';
*/
import { GridVisualizer, useGridLayoutSync } from '../components/grid';
import { store as blockEditorStore } from '../store';
import { unlock } from '../lock-unlock';

function GridLayoutSync( props ) {
useGridLayoutSync( props );
Expand All @@ -24,7 +23,7 @@ function GridTools( { clientId, layout } ) {
isDraggingBlocks,
getTemplateLock,
getBlockEditingMode,
} = unlock( select( blockEditorStore ) );
} = select( blockEditorStore );

// These calls are purposely ordered from least expensive to most expensive.
// Hides the visualizer in cases where the user is not or cannot interact with it.
Expand Down
4 changes: 2 additions & 2 deletions packages/block-editor/src/hooks/layout-child.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
GridItemResizer,
GridItemMovers,
} from '../components/grid';
import { unlock } from '../lock-unlock';

// Used for generating the instance ID
const LAYOUT_CHILD_BLOCK_PROPS_REFERENCE = {};

Expand Down Expand Up @@ -205,7 +205,7 @@ function GridTools( {
getBlockRootClientId,
getBlockEditingMode,
getTemplateLock,
} = unlock( select( blockEditorStore ) );
} = select( blockEditorStore );

const _rootClientId = getBlockRootClientId( clientId );

Expand Down

0 comments on commit 43a50e6

Please sign in to comment.