forked from crowetic/commerce
Image Pass
This commit is contained in:
parent
273569675c
commit
002885090d
@ -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}
|
||||
|
@ -3,7 +3,14 @@ module.exports = {
|
||||
removeDeprecatedGapUtilities: true,
|
||||
purgeLayersByDefault: true,
|
||||
},
|
||||
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
|
||||
purge: {
|
||||
preserveHtmlElements: false,
|
||||
mode: 'all',
|
||||
content: [
|
||||
'./pages/**/*.{js,ts,jsx,tsx}',
|
||||
'./components/**/*.{js,ts,jsx,tsx}',
|
||||
],
|
||||
},
|
||||
theme: {
|
||||
extend: {
|
||||
maxWidth: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user