feat: add total points
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
</script>
|
||||
|
||||
<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">
|
||||
Tasks ({data.tasks.length})
|
||||
</h1>
|
||||
@@ -15,6 +16,8 @@
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
Total progress: {data.tasks.reduce((acc, task) => acc + task.currentPoints, 0)}
|
||||
</div>
|
||||
|
||||
{#if data.tasks.length > 0}
|
||||
<div class="overflow-x-auto w-full">
|
||||
|
||||
Reference in New Issue
Block a user