mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 15:36:58 +00:00
fix typo
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
parent
26a90359d0
commit
045f4b4036
@ -19,10 +19,7 @@ const manufactureVariantMap: Record<
|
|||||||
const BottomContent = async ({ collectionHandle }: { collectionHandle: string }) => {
|
const BottomContent = async ({ collectionHandle }: { collectionHandle: string }) => {
|
||||||
const collection = await getCollection({ handle: collectionHandle });
|
const collection = await getCollection({ handle: collectionHandle });
|
||||||
|
|
||||||
if (
|
if (!collection) {
|
||||||
!collection ||
|
|
||||||
(!collection.dynamicContent && !collection.transmissionCodeLinks && !collection.engineSizeLinks)
|
|
||||||
) {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,6 +30,7 @@ const BottomContent = async ({ collectionHandle }: { collectionHandle: string })
|
|||||||
<Suspense>
|
<Suspense>
|
||||||
<Content collection={collection} />
|
<Content collection={collection} />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
|
{!collection.transmissionCodeLinks && !collection.engineSizeLinks ? null : (
|
||||||
<div className="mt-10 space-y-3">
|
<div className="mt-10 space-y-3">
|
||||||
<Tag text="Get Started" />
|
<Tag text="Get Started" />
|
||||||
<div className="space-y-16">
|
<div className="space-y-16">
|
||||||
@ -49,6 +47,7 @@ const BottomContent = async ({ collectionHandle }: { collectionHandle: string })
|
|||||||
</Suspense>
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -13,7 +13,7 @@ const DefaultContent = async () => {
|
|||||||
const sectionIds = defaultPLPContent.sections ? JSON.parse(defaultPLPContent.sections) : [];
|
const sectionIds = defaultPLPContent.sections ? JSON.parse(defaultPLPContent.sections) : [];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="spacy-y-3">
|
<div className="space-y-3">
|
||||||
<Tag text="Learn More" />
|
<Tag text="Learn More" />
|
||||||
<h3 className="mb-3 text-3xl font-semibold text-black-700 lg:text-4xl">
|
<h3 className="mb-3 text-3xl font-semibold text-black-700 lg:text-4xl">
|
||||||
{defaultPLPContent.title}
|
{defaultPLPContent.title}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user