mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 16:51:09 +08:00
remove the deprecated Preview component
This commit is contained in:
parent
19a6e89dc1
commit
9d02f3772c
@ -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
|
||||
`
|
||||
);
|
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user