- {`This document was last updated on ${new Intl.DateTimeFormat(undefined, { - year: 'numeric', - month: 'long', - day: 'numeric' - }).format(new Date(page.updatedAt))}.`} -
- > - ); -} diff --git a/app/api/revalidate/route.ts b/app/api/revalidate/route.ts deleted file mode 100644 index 94ddfff9b..000000000 --- a/app/api/revalidate/route.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { TAGS } from 'lib/constants'; -import { revalidateTag } from 'next/cache'; -import { headers } from 'next/headers'; -import { NextRequest, NextResponse } from 'next/server'; - -export const runtime = 'edge'; - -// We always need to respond with a 200 status code to Shopify, -// otherwise it will continue to retry the request. -export async function POST(req: NextRequest): Promise{`No products found in this collection`}
- ) : ( -- {products.length === 0 - ? 'There are no products that match ' - : `Showing ${products.length} ${resultsText} for `} - "{searchValue}" -
- ) : null} - {products.length > 0 ? ( -{title}
-- {`${new Intl.NumberFormat(undefined, { - style: 'currency', - currency: currencyCode, - currencyDisplay: 'narrowSymbol' - }).format(parseFloat(amount))} ${currencyCode}`} -
-); - -export default Price; diff --git a/components/product/gallery.tsx b/components/product/gallery.tsx deleted file mode 100644 index 12690d11e..000000000 --- a/components/product/gallery.tsx +++ /dev/null @@ -1,99 +0,0 @@ -'use client'; - -import { useState } from 'react'; - -import clsx from 'clsx'; -import { GridTileImage } from 'components/grid/tile'; -import ArrowLeftIcon from 'components/icons/arrow-left'; - -export function Gallery({ - title, - amount, - currencyCode, - images -}: { - title: string; - amount: string; - currencyCode: string; - images: { src: string; altText: string }[]; -}) { - const [currentImage, setCurrentImage] = useState(0); - - function handleNavigate(direction: 'next' | 'previous') { - if (direction === 'next') { - setCurrentImage(currentImage + 1 < images.length ? currentImage + 1 : 0); - } else { - setCurrentImage(currentImage === 0 ? images.length - 1 : currentImage - 1); - } - } - - const buttonClassName = - 'px-9 cursor-pointer ease-in-and-out duration-200 transition-bg bg-[#7928ca] hover:bg-violetDark'; - - return ( -