Skip to content

Commit c1e2800

Browse files
committed
fix(dataviews): remove unimported React.ComponentType from story decorator
The registerLayout story annotated its decorator param as React.ComponentType but never imported React. TypeScript failed to compile the file, which caused Storybook to silently drop the story from the sidebar (pre-commit ESLint doesn't run tsc). Let Storybook infer the Story param type from Meta<typeof DataViews>. Refs: none
1 parent 319c214 commit c1e2800

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/dataviews/src/stories/register-layout-poc.story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const meta = {
215215
component: DataViews,
216216
parameters: { layout: 'fullscreen' },
217217
decorators: [
218-
( Story: React.ComponentType ) => (
218+
( Story ) => (
219219
<div style={ { maxWidth: 660, margin: '1rem auto' } }>
220220
<h2 style={ { margin: '0 0 8px' } }>Offline payment methods</h2>
221221
<p

0 commit comments

Comments
 (0)