Skip to content

Commit

Permalink
Rename BindingsPanel to BlockBindingsPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiomorales committed May 9, 2024
1 parent d027814 commit 5daff52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { useSelect } from '@wordpress/data';
*/
import { unlock } from '../../lock-unlock';

export const BindingsPanel = ( { block } ) => {
export const BlockBindingsPanel = ( { block } ) => {
const bindings = block?.attributes?.metadata?.bindings;

const sources = useSelect( ( select ) =>
Expand Down
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/block-inspector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import BlockQuickNavigation from '../block-quick-navigation';
import { useBorderPanelLabel } from '../../hooks/border';

import { unlock } from '../../lock-unlock';
import { BindingsPanel } from '../block-bindings-panel';
import { BlockBindingsPanel } from '../block-bindings-panel';

function BlockInspectorLockedBlocks( { topLevelLockedBlock } ) {
const contentClientIds = useSelect(
Expand Down Expand Up @@ -289,7 +289,7 @@ const BlockInspectorSingleBlock = ( { clientId, blockName, block } ) => {
) }
<InspectorControls.Slot />
<InspectorControls.Slot group="list" />
{ hasBindings && <BindingsPanel block={ block } /> }
{ hasBindings && <BlockBindingsPanel block={ block } /> }
<InspectorControls.Slot
group="color"
label={ __( 'Color' ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import AdvancedControls from './advanced-controls-panel';
import PositionControls from './position-controls-panel';
import { default as InspectorControls } from '../inspector-controls';
import SettingsTabHint from './settings-tab-hint';
import { BindingsPanel } from '../block-bindings-panel';
import { BlockBindingsPanel } from '../block-bindings-panel';

function SettingsTab( { showAdvancedControls = false, block } ) {
const hasBindings = block?.attributes?.metadata?.bindings
Expand All @@ -14,7 +14,7 @@ function SettingsTab( { showAdvancedControls = false, block } ) {

return (
<>
{ hasBindings && <BindingsPanel block={ block } /> }
{ hasBindings && <BlockBindingsPanel block={ block } /> }
<InspectorControls.Slot />
<PositionControls />
{ showAdvancedControls && (
Expand Down

0 comments on commit 5daff52

Please sign in to comment.