Skip to content

Commit

Permalink
fixed the Image component
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeriaMaltseva committed Dec 17, 2024
1 parent 8cbf54a commit 40b7b04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions assets/js/src/core/components/image/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<AntImage { ...props } />
)
Expand Down

0 comments on commit 40b7b04

Please sign in to comment.