Skip to content

Commit

Permalink
reverted imageObject fit as variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessevdpoel committed Feb 16, 2024
1 parent 9bdbfa4 commit a3977a9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export type WishlistItemActionCardProps = {
selectedOptions?: InputMaybe<string[]> | undefined
isConfigurableUncompleted?: boolean
secondaryAction?: ReactNode
imageObjectFit?: 'fill' | 'none' | 'contain' | 'cover' | 'scale-down'
} & OwnerState &
Omit<ActionCardProps, 'value' | 'image' | 'price' | 'title' | 'action'>
type OwnerState = { withOptions?: boolean }
Expand Down Expand Up @@ -59,7 +58,6 @@ export function WishlistItemActionCard(props: WishlistItemActionCardProps) {
selectedOptions,
secondaryAction,
variant = 'default',
imageObjectFit = 'fill',
...rest
} = props
const { id, product } = item
Expand Down Expand Up @@ -118,7 +116,7 @@ export function WishlistItemActionCard(props: WishlistItemActionCardProps) {
layout='fill'
src={product?.small_image?.url}
sx={{
objectFit: imageObjectFit,
objectFit: 'contain',
width: productImageSizes[size],
height: productImageSizes[size],
display: 'block',
Expand Down

0 comments on commit a3977a9

Please sign in to comment.