Skip to content

Commit

Permalink
merge classnames
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorland committed Jan 16, 2024
1 parent 44e8d61 commit 7146997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/graph/labels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export function Labels(params: { categories: Category[], className?: string, onC
return (
<Tooltip key={category.index}>
<TooltipTrigger
className={`bg-${getCategoryColors(category.index)}-${category.show ? 500 : 200} rounded-lg border border-gray-300 p-2`}
className={cn(`bg-${getCategoryColors(category.index)}-${category.show ? 500 : 200}`, "rounded-lg border border-gray-300 p-2")}
onClick={() => {
params.onClick(category)
setReload(!reload)
}}
>
{ category.show ? <MinusCircle /> : <PlusCircle /> }
{category.show ? <MinusCircle /> : <PlusCircle />}
</TooltipTrigger>
<TooltipContent>
<p>{category.name}</p>
Expand Down

0 comments on commit 7146997

Please sign in to comment.