mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
Tried some updates
This commit is contained in:
parent
810754ad1d
commit
ac9d8c4386
@ -17,8 +17,6 @@ export async function generateMetadata({
|
|||||||
}): Promise<Metadata> {
|
}): Promise<Metadata> {
|
||||||
const { slug, locale } = params;
|
const { slug, locale } = params;
|
||||||
|
|
||||||
console.log(slug, locale);
|
|
||||||
|
|
||||||
const { query = '', queryParams } = getQueryFromSlug(slug, locale);
|
const { query = '', queryParams } = getQueryFromSlug(slug, locale);
|
||||||
|
|
||||||
const page = await clientFetch(query, queryParams);
|
const page = await clientFetch(query, queryParams);
|
||||||
|
@ -40,7 +40,7 @@ export default async function Footer({ locale }: FooterProps) {
|
|||||||
{link._type == 'linkInternal' ? (
|
{link._type == 'linkInternal' ? (
|
||||||
<Link
|
<Link
|
||||||
className="hover:underline"
|
className="hover:underline"
|
||||||
href={`/${link.reference.locale}/${link.reference.slug.current}`}
|
href={`${link.reference.slug.current}`}
|
||||||
>
|
>
|
||||||
{link.title}
|
{link.title}
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -22,7 +22,7 @@ const BlurbSection = ({
|
|||||||
: desktopLayout === '3-column'
|
: desktopLayout === '3-column'
|
||||||
? 'lg:grid-cols-3'
|
? 'lg:grid-cols-3'
|
||||||
: 'lg:grid-cols-4';
|
: 'lg:grid-cols-4';
|
||||||
console.log(imageFormat);
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{title ? (
|
{title ? (
|
||||||
|
@ -15,7 +15,6 @@ interface Props {
|
|||||||
|
|
||||||
const ProductCard: FC<Props> = ({ product, className, variant = 'default' }) => {
|
const ProductCard: FC<Props> = ({ product, className, variant = 'default' }) => {
|
||||||
const rootClassName = cn('w-full group relative overflow-hidden', className);
|
const rootClassName = cn('w-full group relative overflow-hidden', className);
|
||||||
console.log(product);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
|
@ -21,8 +21,7 @@ const getQueryFromSlug = (slugArray: string[], locale: string) => {
|
|||||||
slug: `/${slugArray.join("/")}`,
|
slug: `/${slugArray.join("/")}`,
|
||||||
locale: locale
|
locale: locale
|
||||||
};
|
};
|
||||||
|
console.log(slugStart)
|
||||||
console.log("Query Params:", queryParams)
|
|
||||||
|
|
||||||
if (slugStart === `produkt` || slugStart === `product`) {
|
if (slugStart === `produkt` || slugStart === `product`) {
|
||||||
docType = `product`
|
docType = `product`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user