Skip to content

Commit

Permalink
Fix ToolsPanel component exports
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw authored and ciampo committed Feb 13, 2023
1 parent 4aad2e2 commit 8673259
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type { ToolsPanelItemProps } from '../types';

// This wraps controls to be conditionally displayed within a tools panel. It
// prevents props being applied to HTML elements that would make them invalid.
const ToolsPanelItem = (
const UnconnectedToolsPanelItem = (
props: WordPressComponentProps< ToolsPanelItemProps, 'div' >,
forwardedRef: ForwardedRef< any >
) => {
Expand All @@ -37,9 +37,9 @@ const ToolsPanelItem = (
);
};

const ConnectedToolsPanelItem = contextConnect(
ToolsPanelItem,
export const ToolsPanelItem = contextConnect(
UnconnectedToolsPanelItem,
'ToolsPanelItem'
);

export default ConnectedToolsPanelItem;
export default ToolsPanelItem;
6 changes: 3 additions & 3 deletions packages/components/src/tools-panel/tools-panel/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Grid } from '../../grid';
import { contextConnect, WordPressComponentProps } from '../../ui/context';
import type { ToolsPanelProps } from '../types';

const ToolsPanel = (
const UnconnectedToolsPanel = (
props: WordPressComponentProps< ToolsPanelProps, 'div' >,
forwardedRef: ForwardedRef< any >
) => {
Expand Down Expand Up @@ -42,6 +42,6 @@ const ToolsPanel = (
);
};

const ConnectedToolsPanel = contextConnect( ToolsPanel, 'ToolsPanel' );
export const ToolsPanel = contextConnect( UnconnectedToolsPanel, 'ToolsPanel' );

export default ConnectedToolsPanel;
export default ToolsPanel;

0 comments on commit 8673259

Please sign in to comment.