fix: make roadmap link

fix/ai-roadmap
Arik Chakma 9 months ago
parent 8488e00254
commit d59c99f168
  1. 11
      src/components/ExploreAIRoadmap/ExploreAIRoadmap.tsx

@ -132,8 +132,11 @@ export function ExploreAIRoadmap() {
<div className="text-center text-gray-800">No roadmaps found</div> <div className="text-center text-gray-800">No roadmaps found</div>
) : ( ) : (
<ul className="grid grid-cols-3 gap-2"> <ul className="grid grid-cols-3 gap-2">
{roadmaps.map((roadmap) => ( {roadmaps.map((roadmap) => {
<li key={roadmap._id} className="rounded-md border"> const roadmapLink = `/ai?id=${roadmap._id}`;
return (
<li key={roadmap._id}>
<a href={roadmapLink} className="block rounded-md border">
<h2 <h2
className="truncate px-2.5 py-2.5 text-xl font-medium leading-none tracking-wide" className="truncate px-2.5 py-2.5 text-xl font-medium leading-none tracking-wide"
title={roadmap.topic} title={roadmap.topic}
@ -152,8 +155,10 @@ export function ExploreAIRoadmap() {
</span> </span>
</span> </span>
</div> </div>
</a>
</li> </li>
))} );
})}
{hasMorePages && ( {hasMorePages && (
<li> <li>
<button <button

Loading…
Cancel
Save