Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe 2024-07-08 22:44:06 +07:00
parent 26a90359d0
commit 045f4b4036
No known key found for this signature in database
GPG Key ID: CFD53CE570D42DF5
2 changed files with 17 additions and 18 deletions

View File

@ -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>
); );
}; };

View File

@ -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}