update dashboard project card ui

pull/3/head
TZGyn 2 years ago
parent dca561535c
commit e253e783d3
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -31,13 +31,15 @@
{project.shortener.length} {project.shortener.length}
Shorteners Shorteners
</Button> </Button>
<div class="flex items-center gap-2"> <Button
<BarChart /> class="flex h-8 items-center justify-center gap-1 rounded bg-secondary text-sm">
<BarChart size={20} />
{project.shortener.reduce( {project.shortener.reduce(
(curr, shortener) => shortener.visitor.length + curr, (curr, shortener) => shortener.visitor.length + curr,
0, 0,
)} visits )}
</div> visits
</Button>
</div> </div>
</Card.Content> </Card.Content>
</Card.Root> </Card.Root>

Loading…
Cancel
Save