Skip to content

Commit

Permalink
Spending widget
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed May 13, 2024
1 parent 8760741 commit 8104ebb
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -23,20 +23,20 @@ export function SpendingCategoryList({ categories, period }) {
style={{ maxHeight: width - PADDING }}
>
{categories.map(
({ category, name, color, percentage, amount, currency }) => {
({ slug, name, color, percentage, amount, currency }) => {
return (
<li key={category}>
<HoverCard openDelay={10} closeDelay={10}>
<HoverCardTrigger asChild>
<Link
className="flex items-center"
href={`/transactions?filter=${JSON.stringify({
categories: [category],
categories: [slug],
date: { from: period?.from, to: period?.to },
})}`}
>
<Category
key={category}
key={slug}
name={name}
color={color}
className="text-sm text-primary space-x-3 w-[90%]"
Expand Down

0 comments on commit 8104ebb

Please sign in to comment.