mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +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 collection = await getCollection({ handle: collectionHandle });
|
||||
|
||||
if (
|
||||
!collection ||
|
||||
(!collection.dynamicContent && !collection.transmissionCodeLinks && !collection.engineSizeLinks)
|
||||
) {
|
||||
if (!collection) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -33,22 +30,24 @@ const BottomContent = async ({ collectionHandle }: { collectionHandle: string })
|
||||
<Suspense>
|
||||
<Content collection={collection} />
|
||||
</Suspense>
|
||||
<div className="mt-10 space-y-3">
|
||||
<Tag text="Get Started" />
|
||||
<div className="space-y-16">
|
||||
<Suspense>
|
||||
<TransmissionCode collection={collection} />
|
||||
</Suspense>
|
||||
{!collection.plpType || collection.plpType === 'Product Type' ? (
|
||||
{!collection.transmissionCodeLinks && !collection.engineSizeLinks ? null : (
|
||||
<div className="mt-10 space-y-3">
|
||||
<Tag text="Get Started" />
|
||||
<div className="space-y-16">
|
||||
<Suspense>
|
||||
<Manufacturers variant={manufactureVariantMap[partType || 'engines']} />
|
||||
<TransmissionCode collection={collection} />
|
||||
</Suspense>
|
||||
) : null}
|
||||
<Suspense>
|
||||
<EngineSizes collection={collection} />
|
||||
</Suspense>
|
||||
{!collection.plpType || collection.plpType === 'Product Type' ? (
|
||||
<Suspense>
|
||||
<Manufacturers variant={manufactureVariantMap[partType || 'engines']} />
|
||||
</Suspense>
|
||||
) : null}
|
||||
<Suspense>
|
||||
<EngineSizes collection={collection} />
|
||||
</Suspense>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
@ -13,7 +13,7 @@ const DefaultContent = async () => {
|
||||
const sectionIds = defaultPLPContent.sections ? JSON.parse(defaultPLPContent.sections) : [];
|
||||
|
||||
return (
|
||||
<div className="spacy-y-3">
|
||||
<div className="space-y-3">
|
||||
<Tag text="Learn More" />
|
||||
<h3 className="mb-3 text-3xl font-semibold text-black-700 lg:text-4xl">
|
||||
{defaultPLPContent.title}
|
||||
|
Loading…
x
Reference in New Issue
Block a user