remove the deprecated Preview component

This commit is contained in:
Norbert de Langen 2022-10-11 18:28:25 +02:00
parent 19a6e89dc1
commit 9d02f3772c
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762
2 changed files with 0 additions and 14 deletions

View File

@ -1,13 +0,0 @@
import React, { ComponentProps } from 'react';
import deprecate from 'util-deprecate';
import { dedent } from 'ts-dedent';
import { Canvas } from './Canvas';
export const Preview = deprecate(
(props: ComponentProps<typeof Canvas>) => <Canvas {...props} />,
dedent`
Preview doc block has been renamed to Canvas.
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewprops-renamed
`
);

View File

@ -13,7 +13,6 @@ export * from './external/ExternalDocs';
export * from './external/ExternalDocsContainer';
export * from './Heading';
export * from './Meta';
export * from './Preview';
export * from './Primary';
export * from './Props';
export * from './Source';