mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Image Pass
This commit is contained in:
@@ -40,8 +40,8 @@ const DropdownMenu: FC<DropdownMenuProps> = ({ open = false }) => {
|
||||
>
|
||||
<Menu.Items className={s.dropdownMenu}>
|
||||
{LINKS.map(({ name, href }) => (
|
||||
<Link href={href}>
|
||||
<Menu.Item key={href}>
|
||||
<Link href={href} key={href}>
|
||||
<Menu.Item>
|
||||
{({ active }) => (
|
||||
<a className={cn(s.link, { [s.active]: active })}>{name}</a>
|
||||
)}
|
||||
|
@@ -24,7 +24,7 @@ const ProductCard: FC<Props> = ({
|
||||
imgHeight,
|
||||
priority,
|
||||
}) => {
|
||||
const src = p.images.edges?.[0]?.node.urlOriginal!
|
||||
const src = p.images.edges?.[0]?.node.urlLarge!
|
||||
|
||||
if (variant === 'slim') {
|
||||
return (
|
||||
@@ -35,7 +35,7 @@ const ProductCard: FC<Props> = ({
|
||||
</span>
|
||||
</div>
|
||||
<EnhancedImage
|
||||
src={src}
|
||||
src={p.images.edges?.[0]?.node.urlSmall!}
|
||||
alt={p.name}
|
||||
width={imgWidth}
|
||||
height={imgHeight}
|
||||
|
Reference in New Issue
Block a user