mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
Fix lints
This commit is contained in:
parent
3a29093e4e
commit
3811fb3807
@ -117,12 +117,11 @@ async function RelatedProducts({ id }: { id: string }) {
|
|||||||
<h2 className="mb-4 text-2xl font-bold">Related Products</h2>
|
<h2 className="mb-4 text-2xl font-bold">Related Products</h2>
|
||||||
<ul className="flex w-full gap-4 overflow-x-auto pt-1">
|
<ul className="flex w-full gap-4 overflow-x-auto pt-1">
|
||||||
{relatedProducts.map((product) => (
|
{relatedProducts.map((product) => (
|
||||||
<li className="aspect-square w-full flex-none min-[475px]:w-1/2 sm:w-1/3 md:w-1/4 lg:w-1/5">
|
<li
|
||||||
<Link
|
|
||||||
key={product.handle}
|
key={product.handle}
|
||||||
className="relative h-full w-full"
|
className="aspect-square w-full flex-none min-[475px]:w-1/2 sm:w-1/3 md:w-1/4 lg:w-1/5"
|
||||||
href={`/product/${product.handle}`}
|
|
||||||
>
|
>
|
||||||
|
<Link className="relative h-full w-full" href={`/product/${product.handle}`}>
|
||||||
<GridTileImage
|
<GridTileImage
|
||||||
alt={product.title}
|
alt={product.title}
|
||||||
label={{
|
label={{
|
||||||
|
@ -12,12 +12,11 @@ export async function Carousel() {
|
|||||||
<div className=" w-full overflow-x-auto pb-6 pt-1">
|
<div className=" w-full overflow-x-auto pb-6 pt-1">
|
||||||
<ul className="flex animate-carousel gap-4">
|
<ul className="flex animate-carousel gap-4">
|
||||||
{[...products, ...products].map((product, i) => (
|
{[...products, ...products].map((product, i) => (
|
||||||
<li className="relative aspect-square h-[30vh] max-h-[275px] w-2/3 max-w-[475px] flex-none md:w-1/3">
|
<li
|
||||||
<Link
|
|
||||||
key={`${product.handle}${i}`}
|
key={`${product.handle}${i}`}
|
||||||
href={`/product/${product.handle}`}
|
className="relative aspect-square h-[30vh] max-h-[275px] w-2/3 max-w-[475px] flex-none md:w-1/3"
|
||||||
className="relative h-full w-full"
|
|
||||||
>
|
>
|
||||||
|
<Link href={`/product/${product.handle}`} className="relative h-full w-full">
|
||||||
<GridTileImage
|
<GridTileImage
|
||||||
alt={product.title}
|
alt={product.title}
|
||||||
label={{
|
label={{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user