[ENG-1545] Remove cover prop from img tag (#1942)

remove cover prop
This commit is contained in:
nikec authored and GitHub committed 2024-01-16 11:33:41 +00:00
1 parent 3eb938a8d8
commit 5cebca67bc
2 files changed
-2

No files matched your search

@@ -3,7 +3,6 @@ import { ComponentProps, forwardRef } from 'react';
import { useSize } from './utils';
export interface ImageProps extends ComponentProps<'img'> {
cover?: boolean;
extension?: string;
size: ReturnType<typeof useSize>;
}
@@ -266,7 +266,6 @@ const Thumbnail = forwardRef<HTMLImageElement, ThumbnailProps>(
className,
blackBarsStyle && size.width === 0 && 'invisible'
),
cover,
style: { ...style, ...(blackBars ? blackBarsStyle : undefined) },
size,
ref