From 40b7b048ec7fb88737c4999547caf55859c05fa1 Mon Sep 17 00:00:00 2001 From: Valeriia Maltseva Date: Tue, 17 Dec 2024 09:52:50 +0100 Subject: [PATCH] fixed the Image component --- assets/.storybook/main.ts | 2 +- assets/js/src/core/components/image/image.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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 ( )