mirror of
https://github.com/vercel/commerce.git
synced 2025-07-24 18:51:23 +00:00
Catch all routes
This commit is contained in:
@@ -14,8 +14,6 @@ interface CardProps {
|
||||
imageFormat?: 'square' | 'portrait' | 'landscape';
|
||||
}
|
||||
|
||||
const placeholderImg = '/product-img-placeholder.svg';
|
||||
|
||||
const Card: FC<CardProps> = ({ className, title, image, link, text, imageFormat = 'square' }) => {
|
||||
const rootClassName = cn('relative', className);
|
||||
|
||||
@@ -39,7 +37,7 @@ const Card: FC<CardProps> = ({ className, title, image, link, text, imageFormat
|
||||
} else if (type === 'category') {
|
||||
href = `/category/${link.internalLink.reference.slug.current}`;
|
||||
} else {
|
||||
return `${link.internalLink.reference.slug.current}`;
|
||||
href = `${link.internalLink.reference.slug.current}`;
|
||||
}
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user