From 2c9a68d1ffd0f3d813475719862209e2e40278de Mon Sep 17 00:00:00 2001 From: StephDietz Date: Mon, 10 Jul 2023 17:32:14 -0500 Subject: [PATCH] move label ui into own component --- components/carousel.tsx | 17 ++++++----------- components/grid/tile.tsx | 33 ++++++++------------------------ components/label.tsx | 41 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 36 deletions(-) create mode 100644 components/label.tsx diff --git a/components/carousel.tsx b/components/carousel.tsx index 78254d05b..fe1c244d9 100644 --- a/components/carousel.tsx +++ b/components/carousel.tsx @@ -1,7 +1,7 @@ import { getCollectionProducts } from 'lib/shopify'; import Image from 'next/image'; import Link from 'next/link'; -import Price from './price'; +import Label from './label'; export async function Carousel() { // Collections that start with `hidden-*` are hidden from the search page. @@ -27,16 +27,11 @@ export async function Carousel() { src={product.featuredImage.url} /> ) : null} -
-

- {product.title} -

- -
+