Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ShantelPeters committed Dec 1, 2024
1 parent 60acd2d commit 7c3208e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/producers/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export default function Home() {
className="w-full h-full object-cover"
src="/bottle.png"
alt="bottles"
width={500}
height={500}
width={500}
height={500}
/>
</div>
</div>
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/components/ProductPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,23 @@ export default function ProductPreview({ productId }: { productId: string }) {
document.body
)}
<div className="w-full max-w-6xl relative lg:bg-[#1E1E1E] rounded-3xl p-6 lg:p-[88px] text-white mx-auto lg:border-[1px] border-[#303030] grid grid-cols-1 lg:grid-cols-2 gap-y-5 gap-x-[80px] items-stretch">
<Image
<Image
src="/productEllipse.svg"
alt=""
className="absolute hidden lg:flex top-[-30px] left-[60px] z-[1]"
width={100}
height={100}
width={100}
height={100}
/>
{/* Product Image Section */}
<div className="z-10">
<div className=" h-[402px] flex items-center justify-center">
<Image
<Image
src={product?.image || '/placeholder.png'} // Add a fallback image
alt={product?.name ? product?.name : 'Product Image'}
className="h-full"
width={300}
height={402}
objectFit="contain"
width={300}
height={402}
objectFit="contain"
/>
</div>

Expand Down
26 changes: 13 additions & 13 deletions frontend/src/components/Scan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ export default function ScanProduct() {
</p>
</div>
<div className="col-span-2 w-full h-full">
<Image
src={product?.image || '/placeholder-product.png'} // Add fallback image
className="w-full h-full object-cover"
alt="product-image"
width={500}
height={500}
/>
<Image
src={product?.image || '/placeholder-product.png'} // Add fallback image
className="w-full h-full object-cover"
alt="product-image"
width={500}
height={500}
/>
{/* <div className="flex items-center justify-between pt-5">
<div className="space-y-2 flex items-center justify-center flex-col">
<ScanIcon2 />
Expand Down Expand Up @@ -214,12 +214,12 @@ export default function ScanProduct() {
</p>

<div className="">
<Image
src={product?.image || '/placeholder-product.png'}
alt="product-image"
width={300} // Add appropriate width
height={300} // Add appropriate height
/>
<Image
src={product?.image || '/placeholder-product.png'}
alt="product-image"
width={300} // Add appropriate width
height={300} // Add appropriate height
/>
<div className="flex items-center justify-between pt-5">
{/* <div className="space-y-2 flex items-center justify-center flex-col">
<ScanIcon2 />
Expand Down

0 comments on commit 7c3208e

Please sign in to comment.