Skip to content

Commit

Permalink
Storybook: Remove showNoBlockSelectedMessage argType
Browse files Browse the repository at this point in the history
  • Loading branch information
SainathPoojary committed Jan 24, 2025
1 parent ce76520 commit c2ec596
Showing 1 changed file with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,13 @@ const meta = {
},
},
},
argTypes: {
showNoBlockSelectedMessage: {
control: 'boolean',
description:
'Whether to display a "No block selected" message when no block is selected.',
table: {
type: { summary: 'boolean' },
},
},
},
decorators: [
( Story ) => (
<ExperimentalBlockEditorProvider value={ blocks }>
<Story />
</ExperimentalBlockEditorProvider>
),
],
};

export default meta;
Expand All @@ -60,11 +57,9 @@ export const Default = {};
export const WithSelectedBlock = {
decorators: [
( Story ) => (
<ExperimentalBlockEditorProvider value={ blocks }>
<BlockSelector clientId={ blocks[ 0 ].clientId }>
<Story />
</BlockSelector>
</ExperimentalBlockEditorProvider>
<BlockSelector clientId={ blocks[ 0 ].clientId }>
<Story />
</BlockSelector>
),
],
};

0 comments on commit c2ec596

Please sign in to comment.