fix: update PLP UI

This commit is contained in:
Chloe
2024-06-21 11:53:50 +07:00
parent cc3982288a
commit 441126c4b5
11 changed files with 178 additions and 118 deletions

View File

@@ -175,6 +175,7 @@ const reshapeCollection = (collection: ShopifyCollection): Collection | undefine
return {
...collection,
helpfulLinks: parseMetaFieldValue<string[]>(collection.helpfulLinks),
helpfulLinksTop: parseMetaFieldValue<string[]>(collection.helpfulLinksTop),
path: `/search/${collection.handle}`
};
};
@@ -530,7 +531,8 @@ export async function getCollections(): Promise<Collection[]> {
},
path: '/search',
updatedAt: new Date().toISOString(),
helpfulLinks: null
helpfulLinks: null,
helpfulLinksTop: null
},
// Filter out the `hidden` collections.
// Collections that start with `hidden-*` need to be hidden on the search page.