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

remove cover prop
This commit is contained in:
nikec
2024-01-16 12:33:41 +01:00
committed by GitHub
parent 3eb938a8d8
commit 5cebca67bc
2 changed files with 0 additions and 2 deletions

View File

@@ -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>;
}

View File

@@ -266,7 +266,6 @@ const Thumbnail = forwardRef<HTMLImageElement, ThumbnailProps>(
className,
blackBarsStyle && size.width === 0 && 'invisible'
),
cover,
style: { ...style, ...(blackBars ? blackBarsStyle : undefined) },
size,
ref