This commit is contained in:
Henrik Larsson
2023-08-08 11:46:46 +02:00
parent 6527974989
commit 3e513eaf99
27 changed files with 449 additions and 760 deletions

View File

@@ -8,8 +8,6 @@ import dynamic from 'next/dynamic';
import Link from 'next/link';
import { FC } from 'react';
const WishlistButton = dynamic(() => import('components/ui/wishlist-button'));
const SanityImage = dynamic(() => import('components/ui/sanity-image'));
interface Props {
@@ -30,11 +28,6 @@ const ProductCard: FC<Props> = ({ product, className, variant = 'default' }) =>
>
{variant === 'default' && (
<div className={'relative flex h-full w-full flex-col justify-center'}>
<WishlistButton
className={'absolute right-4 top-4 z-10'}
productId={product.id}
variant={product?.variants ? (product.variants[0] as any) : null}
/>
<div className="relative h-full w-full overflow-hidden">
{product?.images && (
<SanityImage