From 045f4b4036bc5bcd411e818eecd0aa9bac5cde12 Mon Sep 17 00:00:00 2001 From: Chloe Date: Mon, 8 Jul 2024 22:44:06 +0700 Subject: [PATCH] fix typo Signed-off-by: Chloe --- components/layout/search/bottom-content.tsx | 33 ++++++++++----------- components/plp/default-content.tsx | 2 +- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/components/layout/search/bottom-content.tsx b/components/layout/search/bottom-content.tsx index 45cbee47a..9be58a5e3 100644 --- a/components/layout/search/bottom-content.tsx +++ b/components/layout/search/bottom-content.tsx @@ -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 }) -
- -
- - - - {!collection.plpType || collection.plpType === 'Product Type' ? ( + {!collection.transmissionCodeLinks && !collection.engineSizeLinks ? null : ( +
+ +
- + - ) : null} - - - + {!collection.plpType || collection.plpType === 'Product Type' ? ( + + + + ) : null} + + + +
-
+ )}
); }; diff --git a/components/plp/default-content.tsx b/components/plp/default-content.tsx index 921b11046..1cecb1900 100644 --- a/components/plp/default-content.tsx +++ b/components/plp/default-content.tsx @@ -13,7 +13,7 @@ const DefaultContent = async () => { const sectionIds = defaultPLPContent.sections ? JSON.parse(defaultPLPContent.sections) : []; return ( -
+

{defaultPLPContent.title}