Skip to content

Commit

Permalink
Link tag
Browse files Browse the repository at this point in the history
  • Loading branch information
andrearcaina committed Feb 13, 2024
1 parent 254c67b commit c7f4c3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/app/buying/page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';
import { useState } from 'react';
import { Form } from '@/components';
import Link from 'next/link';

export default function selling() {
const [data, setData] = useState('');
Expand All @@ -23,7 +24,7 @@ export default function selling() {
<div>
{data.info.map((item, index) => (
<div key={index} className="bg-white shadow-md rounded-lg p-4 mb-4">
<a className="text-blue-500 hover:underline" href={item.link} target="_blank">{item.title}</a>
<Link className="text-blue-500 hover:underline" href={item.link} target="_blank">{item.title}</Link>
<p className="text-gray-700">Price: ${item.price}</p>
</div>
))}
Expand Down

0 comments on commit c7f4c3f

Please sign in to comment.