Skip to content

Commit 7fb925b

Browse files
committed
Made Badge Clickable
1 parent 15154d1 commit 7fb925b

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

  • app/next-client-app/app/(protected)/datasets/[id]

app/next-client-app/app/(protected)/datasets/[id]/layout.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,14 @@ export default async function DatasetLayout({
6262
<div>Project(s): </div>
6363
<div className="flex space-x-1">
6464
{projects.map((project) => (
65-
<Badge variant="outline" key={project.id}>
66-
{project.name}
67-
</Badge>
65+
<Link key={project.id} href={`/projects/${project.id}`}>
66+
<Badge
67+
variant="outline"
68+
className="cursor-pointer hover:bg-accent hover:text-accent-foreground transition-colors"
69+
>
70+
{project.name}
71+
</Badge>
72+
</Link>
6873
))}
6974
</div>
7075
</h3>

0 commit comments

Comments
 (0)