Skip to content

Commit

Permalink
Update page.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerryzjx committed Jul 7, 2024
1 parent 83e8c77 commit 051a874
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,19 @@ export default function Home() {

const rentals = [
{
id: "volter-electric-bike",
name: "Volter Electric Bike",
price: "CA $10/hr",
itemDisplay: "/img/bike-display.png",
},
{
id: "voltskate-electric-skateboard",
name: "VoltSkate Electric Skateboard",
price: "CA $10/hr",
itemDisplay: "/img/skateboard-display.png",
},
{
id: "electric-one-wheel",
name: "Electric One-Wheel",
price: "CA $10/hr",
itemDisplay: "/img/one-wheel-display.png",
Expand Down Expand Up @@ -81,7 +84,7 @@ export default function Home() {
<h2 className="text-3xl font-semibold text-left mb-8 text-gray-800">Rentals</h2>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
{rentals.map((item, index) => (
<ProductDisplay key={index} itemDisplay={item.itemDisplay} name={item.name} price={item.price} />
<ProductDisplay key={index} id={item.id} itemDisplay={item.itemDisplay} name={item.name} price={item.price} />
))}
</div>
</section>
Expand Down

0 comments on commit 051a874

Please sign in to comment.