link topic in topics page to topic page

This commit is contained in:
2025-12-16 01:04:24 +01:00
parent e8c8779536
commit fd06713555

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import { goto } from '$app/navigation';
import * as Table from '$lib/components/ui/table/index.js';
let { data } = $props();
@@ -14,7 +15,10 @@
</Table.Header>
<Table.Body>
{#each data.topics as topic}
<Table.Row>
<Table.Row
onclick={() => goto(`/progress/topics/${topic.id}`)}
class="cursor-pointer hover:bg-muted/50"
>
<Table.Cell class="font-medium">{topic.name}</Table.Cell>
<Table.Cell>{topic.topicsToTasks.length}</Table.Cell>