diff --git a/assets/.storybook/main.ts b/assets/.storybook/main.ts index 983eb19a5..736f1853e 100644 --- a/assets/.storybook/main.ts +++ b/assets/.storybook/main.ts @@ -22,7 +22,7 @@ const config: StorybookConfig = { reactDocgenTypescriptOptions: { propFilter: (prop: any) => { - const res = /antd/.test(prop.parent?.fileName) || !/node_modules/.test(prop.parent?.fileName); + const res = /antd|rc-image/.test(prop.parent?.fileName) || !/node_modules/.test(prop.parent?.fileName); return prop.parent ? res : true; }, shouldExtractLiteralValuesFromEnum: true, diff --git a/assets/js/src/core/components/image/image.tsx b/assets/js/src/core/components/image/image.tsx index 48dcd014f..2a9883cf6 100644 --- a/assets/js/src/core/components/image/image.tsx +++ b/assets/js/src/core/components/image/image.tsx @@ -14,9 +14,7 @@ import React from 'react' import { Image as AntImage, type ImageProps } from 'antd' -export interface IImageProps extends ImageProps {} - -export const Image = (props: IImageProps): JSX.Element => { +export const Image = (props: ImageProps): JSX.Element => { return ( )