feat: add total points
This commit is contained in:
@@ -3,7 +3,8 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex flex-col items-center p-4">
|
<div class="flex flex-col items-center p-4">
|
||||||
<div class="w-full max-w-4xl flex justify-center gap-8 items-center mt-4 mb-8">
|
<div class="w-full max-w-4xl flex flex-col gap-4 items-center mt-4 mb-8">
|
||||||
|
<div class="flex justify-center gap-8">
|
||||||
<h1 class="font-bold text-2xl">
|
<h1 class="font-bold text-2xl">
|
||||||
Tasks ({data.tasks.length})
|
Tasks ({data.tasks.length})
|
||||||
</h1>
|
</h1>
|
||||||
@@ -15,6 +16,8 @@
|
|||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
Total progress: {data.tasks.reduce((acc, task) => acc + task.currentPoints, 0)}
|
||||||
|
</div>
|
||||||
|
|
||||||
{#if data.tasks.length > 0}
|
{#if data.tasks.length > 0}
|
||||||
<div class="overflow-x-auto w-full">
|
<div class="overflow-x-auto w-full">
|
||||||
|
|||||||
Reference in New Issue
Block a user