diff --git a/app/modules/FeaturedCollections.tsx b/app/modules/FeaturedCollections.tsx deleted file mode 100644 index 3c0ce9fe..00000000 --- a/app/modules/FeaturedCollections.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import { Image } from "@shopify/hydrogen"; - -import type { HomepageFeaturedCollectionsQuery } from "storefrontapi.generated"; -import { Heading, Section, Grid, Link } from "~/modules"; - -type FeaturedCollectionsProps = HomepageFeaturedCollectionsQuery & { - title?: string; - [key: string]: any; -}; - -export function FeaturedCollections({ - collections, - title = "Collections", - count, - ...props -}: FeaturedCollectionsProps) { - const haveCollections = collections?.nodes?.length > 0; - if (!haveCollections) return null; - - const collectionsWithImage = collections.nodes - .filter((item) => item.image) - .slice(0, count); - - return ( -
- - {collectionsWithImage.map((collection) => { - return ( - -
-
- {collection?.image && ( - {`Image - )} -
- {collection.title} -
- - ); - })} -
-
- ); -} diff --git a/app/sections/featured-collections/collection-card.tsx b/app/sections/featured-collections/collection-card.tsx deleted file mode 100644 index fd1f225a..00000000 --- a/app/sections/featured-collections/collection-card.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { Image } from "@shopify/hydrogen"; -import type { Collection } from "@shopify/hydrogen/storefront-api-types"; - -import { Heading, Link } from "~/modules"; - -export function CollectionCard({ - collection, - imageAspectRatio, - loading, -}: { - collection: Collection; - imageAspectRatio: string; - loading?: HTMLImageElement["loading"]; -}) { - return ( - -
- {collection?.image && ( - - )} -
- - {collection.title} - - - ); -}