Image Pass

This commit is contained in:
Belen Curcio
2020-10-25 13:29:52 -03:00
parent 273569675c
commit 002885090d
3 changed files with 12 additions and 5 deletions

View File

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

View File

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